EF Code First Migrations数据库迁移
1.Enable-Migrations //开启数据迁移功能
2.修改setinitializer为空 Database.setInitializer<ConnDBContext>(null);
3.打开Migrations文件夹中找到AutomaticMigrationsEnabled设置成真;
4.Add-Migration Add表名 比如(AddDecorateStates)
5.Update-Database -Verbose
如不明白可参考http://www.cnblogs.com/libingql/p/3330880.html
如不明白可参考http://blog.csdn.net/luoyeyu1989/article/details/8275237