标签:typename 解决 code ati web framework mod data strong
不分开迁移报错如下;
解决方案
1 迁移Migration/nfoManage
EntityFramework\Enable-Migrations -ContextTypeName InfoModel.Context.InfoManageContext -MigrationsDirectory:Migrations\InfoManage
EntityFramework\add-migration -ConfigurationTypeName InfoModel.Migrations.InfoManage.Configuration InfoManage
EntityFramework\update-database -ConfigurationTypeName InfoModel.Migrations.InfoManage.Configuration
2 迁移Migration\EquipWeb
EntityFramework\Enable-Migrations -ContextTypeName InfoModel.Context.EquipWebContext -MigrationsDirectory:Migrations\EquipWeb
EntityFramework\add-migration -ConfigurationTypeName InfoModel.Migrations.EquipWeb.Configuration EquipWeb
EntityFramework\update-database -ConfigurationTypeName InfoModel.Migrations.EquipWeb.Configuratio
标签:typename 解决 code ati web framework mod data strong
原文地址:https://www.cnblogs.com/jiangjiali1228/p/11031628.html