在从数据库执行更新模型时,我遇到了 EF 没有引入外键关系的问题。所以我只是删除了 .edmx 文件并重新生成了它。问题是我的上下文类型被命名为 InventoryMgmtContext,现在我收到错误
The type of namespace InventoryMgmtContext could not be found.
在哪里/如何重命名上下文?
最佳答案
关于c# - 如何在 Entity Framework 6 中重命名 DBContext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29202585/