摘要: 1、打开程序包管理器控制台 PM> enable-migrations –EnableAutomaticMigration:$true 2、项目工程文件中会生成Migrations文件夹 3、找到数据库上下文中的构造函数中,如 4、找到Migrations文件夹下的Configuration.cs, 阅读全文
posted @ 2016-12-28 15:20 装饰的梦 阅读(252) 评论(0) 推荐(0)