I have an existing DB and I have used the EF 4.1 code first to map my POCO objects to the tables. But I get the this error:
EF 4.1 Error Model compatibility cannot be checked because the EdmMetadata type
Eventhough I have added the OnModelCreating method it still gives me the same error:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Remove<IncludeMetadataConvention>();
}
My POCO and DB Table are exactly identical.