Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Unassigned: Changing EntitySet.Name breaks mapping [1030]

$
0
0
Repro:
Create a basic entity model with the model based convention below
When the application is run and EF attempts to build the model a MappingException is thrown

class ModelBasedConvention : IDbConvention<EdmProperty>
{
public void Apply(EdmProperty property, EdmModel model)
{
property.Name = property.TypeName + "_" + property.Name;
}
}


Viewing all articles
Browse latest Browse all 10318

Trending Articles