How to use MVC4 Migrations without using Entity Framework?

How to use MVC4 Migrations without using Entity Framework? I would really like to use data migration, but I do not use Entity Framework. I am using dapper-dot-net.

+4
source share
2 answers

Yes, you can use Migrations without using the Entity Framework. All Migrations takes care of the metadata that it uses to manage the database, and you need to use some EF elements to process them, but then you never need to use EF to actually access the database. This blog post details the process: http://weblogs.asp.net/fredriknormen/archive/2012/02/15/using-entity-framework-4-3-database-migration-for-any-project.aspx

+7
source

Check out Insight.Database.Schema on NuGet. This gives you a lot of magic migration without the hassle of EF. I will be updating documents on github over the next few days.

+3
source

Source: https://habr.com/ru/post/1416581/


All Articles