Is it possible to add a migration file using DbMigrator in code instead of through the powershell commands?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
DbMigrator
is class for running migrations. Classes for creating migration are in System.Data.Entity.Migrations.Design
. ToolingFacade
is called by powershell commands. Other classes represents low level API for creating migration code.