How can I disable model compatibility checking in Entity Framework 4.3?
Solution 1:
Setting the initializer to null
will skip the model compatibility check.
Database.SetInitializer<MyContext>(null);
Solution 2:
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)