This article describes the multiple model migrations per physical database feature of Entity Framework 6.0 (Code First Model).
IntroductionUp to Entity Framework 5.0, there were only single migrations possible to manage a single DbContext (user model) per physical database. Now Entity Framework 6.0 supports multiple model migrations per physical database.This feature of Entity Framework is formerly known as "Multi-Tenant Migrations" or "Multiple Contexts per Database".Generally a multi-tenant database is able to isolate various groups of tables that might to be used for different purposes or may be used for different applications. There are multiple ways to make database multi-tenant. One of the common methods is to use a different schema name for a different group of tables.Entity Framework Code First model migration allows us to create a new database or update the existing database based on model classes. Entity Framework 5.0 Code First migration only supports one DbContext per physical database. Entity Framework 6.0 onward, Code First migration supports multiple DbContexts per single physical database.The following is the procedure to migrate a Code First model.
Active Directory-9999