EF Code First 数据迁移命令时间:2023-03-08 23:41:42 只需要开启程序管理控制台(Package Manager Console) 然后输入 Enable-Migrations -ContextTypeName youContextdb(你的数据库上下文名称)