I am trying to use EF 4 Code First pattern. My initialization code is as follows:
Create Model Builder:
private static DbModelBuilder CreateModelBuil
Removing IncludeMetadataConvention
means the initializer cannot tell when the model changes. Adding it back in won't help either because it only creates the meta data table on db creation, which obviously won't exist for preexisting databases or databases that were created with the convention disabled.
Solution is dropping the database and enabling the convention, or disabling the initializer and updating the database another way (manual or ef migrations)