CodeFirstMigrations??????????
???????????? ???????[ 2014/7/18 14:41:00 ] ??????????????? ?????
????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
??????????е?????????ж????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11