EF6 CodeFirst 启用Migration,常用命令

Enable-Migrations –EnableAutomaticMigrations
Add-Migration [MigrationName] [-Force]
Update-Database –TargetMigration CityProperty

 

posted @ 2015-07-23 16:14  庚武  Views(576)  Comments(0Edit  收藏  举报