I'm exploring Entity Framework and I'm having some trouble when I try to generate a model using the EF 6 EntityObject Generator template. Once the template completes its operation I get a bunch of errors in the error list. Here are four of the errors:
The name 'TemplateMetadata' does not exist in the current context 'System.Data.Metadata.Edm.EnumType' is inaccessible due to its protection level 'System.Data.Metadata.Edm.EnumType' does not contain a definition for 'UnderlyingType' and no extension method 'UnderlyingType' accepting a first argument of type 'System.Data.Metadata.Edm.EnumType' could be found (are you missing a using directive or an assembly reference?) 'Microsoft.VisualStudio.TextTemplating32E3A8132CB3A5BCD6B75A5C1B94668D.GeneratedTextTransformation.MetadataConstants' does not contain a definition for 'TT_TEMPLATE_VERSION'
According to this SO post EF 6
will work with .NET 4
, but according to this CodePlex post, EF 6
doesn't support .NET 4
so as a complete beginner to EF, I'm a bit confused.
If I cannot use EF 6
, how can I safely downgrade my project to EF 5
?