Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 272
sashaeve Avatar asked Mar 07 '12 10:03

sashaeve


1 Answers

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.

like image 196
Anders Abel Avatar answered Oct 30 '22 18:10

Anders Abel