I\'m working with EF 4.3 and have a context which needs to talk to a database which was generated by another library using EF Code First 4.3. The context is throwing an exc
Setting the initializer to null
will skip the model compatibility check.
Database.SetInitializer<MyContext>(null);
For EF 4.3 or higher
Database.SetInitializer<MLTServerWatcherContext>(null);
Or if using older version of EF
modelBuilder.Conventions.Remove<IncludeMetadataConvention>();
(I know he said he are using EF 4.3, but i think it's good to show this option too)