Saturday, June 23, 2012

Mapping and metadata information could not be found for EntityType

When I am working with MVC, using Entity Framework this is the error which I get when I do some database changes and forgot to reflect the changes in edmx file or the objects. The detailed error is

"Mapping and metadata information could not be found for EntityType Error"

So, the possibilities are:
  • Database table columns changed but those changes not reflected in C# object properties. There could be properties missing, misspelled or the mismatching of the data types.
So make sure you sync Database and your Project classes always to avoid the above errors.

No comments:

Post a Comment