Search code examples
asp.net-coreormmigrationef-code-firstcode-first

How can we use RepoDB with code first approach?


If we want to create an Asp.Net Core project with code first approach and using RepoDB, how can we manage the operations such as migrations? Do we need an additional ORM like EF, EF Core?

Thanks.


Solution

  • As RepoDb does not support code first migration, it is highly recommended to use EF for your scenario. Or, you can also use some migration tools to manage your DB migration (ie: Evolve, Fluent Migrator, etc) and use RepoDb as your ORM.