在 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 即可)作为介绍。我写了一个series关于它也是如此。
关于asp.net-mvc-3 - XXXX 不再使用。 <see cref ="EdmModelDiffer"/> 现在用于检测模型中的更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9599865/