-1

I am getting following error

The model backing the 'XYZ' context has changed since the database was created.

How can get to know the Entity / Entities which are casuing issues for logging purposes?

1 Answers1

-1

The entity name you are having issue with is 'XYZ' of course, as it it exactly specified in the error you posted.

Although i'm not sure which exception you have to catch, and you should probably not do it, it is clear what you have to do.

Here is some helpful information :

The model backing the <Database> context has changed since the database was created

Also been discused here :

Entity Framework 4.1 The model backing the context has changed since the database was created, immediately after creating DB

Where it is told that catch (PlatformNotSupportedException) may be related. But has i said, this may not be the solution at all.

Finally, the problem may be even deeper, if it's the case, look at this :

The model backing the '--Context' context has changed since the database was created - but db is new production database

Antoine Pelletier
  • 3,164
  • 3
  • 40
  • 62