加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-3 – 不再使用XXXX.现在用于检测模型中的更改

发布时间:2020-12-16 04:34:21 所属栏目:asp.Net 来源:网络整理
导读:在EF 4.3 IncludeMetadataConvention中,EdmMetadata和其他类已过时: The XXX is no longer used. EdmMetadata is not included in the model. see cref=”EdmModelDiffer” / is now used to detect changes in the model. 什么是EdmModelDiffer以及它应该
在EF 4.3 IncludeMetadataConvention中,EdmMetadata和其他类已过时:

The XXX is no longer used. EdmMetadata is not
included in the model. <see cref=”EdmModelDiffer” />
is now used to detect changes in the model.

什么是EdmModelDiffer以及它应该如何使用?

解决方法

看起来EdmModelDiffer是EF代码迁移的内部类,因此传递回用户是一个非常糟糕的错误消息.

在Entity Framework 4.3中,EF迁移用于检测模型中的更改,并在需要时选择性地更新数据库. This博客文章解释了有关edmmetadata与新ef迁移的一些细节.

有一些EF迁移演练(google for it)可作为介绍.我也写了一篇关于它的series.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读