XXXX is no longer used. <see cref=“EdmModelDiffer” /> is now used to detect changes in the model

StackOverflow https://stackoverflow.com//questions/9599865

문제

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