entity-framework - 无法在 Entity Framework 中生成显式迁移

标签 entity-framework entity-framework-migrations

我正在添加新的迁移,但此消息显示:

Unable to generate an explicit migration because the following explicit migrations are pending: [201203170856167_left]. Apply the pending explicit migrations before attempting to generate a new explicit migration.

谁能帮帮我吗?

最佳答案

它告诉您应用程序中有一些未处理的迁移,需要运行 Update-Database 才能添加另一个迁移。

关于entity-framework - 无法在 Entity Framework 中生成显式迁移,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9817860/

相关文章:

silverlight - RIA 服务 - 两个实体模型共享一个实体名称

c# - 如何提取对象初始值设定项的一部分?

c# - 用于 EF core 数据库更新的命令行连接字符串

entity-framework - 如何在 EF Core 中配置固定长度的列?

c# - Entity Framework 6.1.3 从代码优先模型初始化现有但为空的数据库

c# - 代码优先迁移 : How to set default value for new property?

c# - Entity Framework 错误延迟加载

.net - linq 查询中的 String.Format

entity-framework - ef5数据库第一个数据注释

entity-framework - 生成的迁移已与架构匹配