Alternatives to EF Code First migrations for ASP.NET Core applications

asp.net c# dapper entity-framework orm

Question

I have one question related to database migrations framework for ASP.NET Core.

So we have beautiful Entity Framework and there we have code first migrations and in this case all works great for us. BUT, I'm using Dapper ORM instead of EF for my application and in this case I can't use EF Migrations. So I need something like flywaydb migrations but for ASP.NET Core application.

Do you know some frameworks which can help me with that?

Thanks.

1
2
4/5/2017 3:23:08 PM

Accepted Answer

Looks like there is my solutions:

fluentmigrator

DbUp

But still need to investigate this solutions a bit more.

2
4/7/2017 9:44:37 AM

Popular Answer

You're not using EF at all, you say. Why don't you use a Visual Studio database project. If you have an existing DB, you import it into the DB project. Thereafter, you make your changes in the DB project, then push them out to your instances via the schema comparison and scripting tools. Your DB project can live in your VS solution. Have I understood the problem correctly?



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow