Possible to add migration using EF DbMigrator

[亡魂溺海] 提交于 2019-12-13 06:07:21

问题


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.



来源:https://stackoverflow.com/questions/12353840/possible-to-add-migration-using-ef-dbmigrator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!