In EF 4.3 IncludeMetadataConvention, EdmMetadata and other classes are obsolete:

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.

What is EdmModelDiffer and how it should be used?

有帮助吗?

解决方案

It looks like EdmModelDiffer is an internal class for EF Code Migrations, so it is quite a bad error message to pass back to the user.

In Entity Framework 4.3 EF Migrations is used to detect changes in the model and optionally update the database when needed. This blog post explains some details on edmmetadata vs the new ef migrations.

There are some EF migration walkthroughs (google for it) available as an introduction. I've written a series about it as well.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top