XXXX is no longer used. <see cref=“EdmModelDiffer” /> is now used to detect changes in the model
-
08-12-2019 - |
Question
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?
Solution
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.