可以使用EF DbMigrator添加迁移 [英] Possible to add migration using EF DbMigrator

查看:180
本文介绍了可以使用EF DbMigrator添加迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用DbMigrator代码而不是通过powershell命令添加迁移文件?

Is it possible to add a migration file using DbMigrator in code instead of through the powershell commands?

推荐答案

DbMigrator 是运行迁移的类。用于创建迁移的类在 System.Data.Entity.Migrations.Design ToolingFacade 由powershell命令调用。其他类代表创建迁移代码的低级API。

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.

这篇关于可以使用EF DbMigrator添加迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆