对同一个项目下的多个数据库Context进行迁移Migrations

PM> Enable-Migrations -MigrationsDirectory "Migrations\ContextA" -ContextTypeName MyProject.Models.ContextA
PM> Enable-Migrations -MigrationsDirectory "Migrations\ContextB" -ContextTypeName MyProject.Models.ContextB
posted @ 2016-07-10 16:24  Yghost  Views(252)  Comments(0Edit  收藏  举报