????3??????????Enable-Migrations
???????????????鈥�???
????Checking if the context targets an existing database...
????Detected database created with a database initializer. Scaffolded migration '201212090821166_InitialCreate' corresponding to existing database. To use an automatic migration instead?? delete the Migrations folder and re-run Enable-Migrations specifying the -EnableAutomaticMigrations parameter.
????Code First Migrations enabled for project MvcApplication1.
???????????????????????校?

??????configuation.cs????????????????
????public Configuration()
????{
????AutomaticMigrationsEnabled = true;
????}
??????????Update-Database??
??????????????max???10????????????????????????????????????????锟�?
????Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
????No pending code-based migrations.
????Applying automatic migration: 201212090848057_AutomaticMigration.
????Automatic migration was not applied because it would result in data loss.
????????????锟�??????????????????械?????????
????Enable-Migrations -Force
???????????校?Update-Database

??????????械?????????卸????