Migration

BasicCRUD Insert Query with Bridge

Now let us look at how to create our database using Entity framework for migration, Lets look at the persistence layer, here we have the base layer of our application context and the migration also has a DbContext here inherited from the ApplicationEFDbContext.

public class ApplicationEFDbMigrationContext : ApplicationEFDbContext

Migration takes all the DomainModels derived from the DomainModelBridge and add it to the EF DbContext automatically. You can continue using your EF migration commands to generate your migration files. You can refer the video to see that in action.

Last updated