ASP.Net MVC Guide

Enable Migrations

At the Package Manager Console:

PM> enable-migrationsMore than one context type was found in the assembly 'BookBuyersGuideMVC'.To enable migrations for BookBuyersGuideMVC.DAL.GuideContext, use Enable-Migrations -ContextTypeName BookBuyersGuideMVC.DAL.GuideContext.To enable migrations for BookBuyersGuideMVC.Models.UsersContext, use Enable-Migrations -ContextTypeName BookBuyersGuideMVC.Models.UsersContext.PM> Enable-Migrations -ContextTypeName BookBuyersGuideMVC.DAL.GuideContextChecking if the context targets an existing database...Code First Migrations enabled for project BookBuyersGuideMVC.PM> Enable-Migrations -ContextTypeName BookBuyersGuideMVC.Models.UsersContextMigrations have already been enabled in project 'BookBuyersGuideMVC'. To overwrite the existing migrations configuration, use the -Force parameter.PM> add-migration InitialCreateScaffolding migration 'InitialCreate'.The Designer Code for this migration file includes a snapshot of your current Code First model. This snapshot is used to calculate the changes to your model when you scaffold the next migration. If you make additional changes to your model that you want to include in this migration, then you can re-scaffold it by running 'Add-Migration 201403300547572_InitialCreate' again.