If you want to change your database without regenerating the entire model or re-creating your database from the model, I consider it the easiest and safest way to change the properties of an EDMX diagram using Visual Studio, and then manually adjust the mappings that visual studio doesn't give access.
The error will give you the line number:
Problem displaying fragments starting at line 569
Just open the edmx file in a text editor, go to that line, and it should be pretty obvious what you need to fix it. There will be a section that will look like this:
<EntityTypeMapping TypeName="YourModel.YourType"> <MappingFragment StoreEntitySet="YourType"> <ScalarProperty Name="PropertyName1" ColumnName="DatabaseColumn1" /> <ScalarProperty Name="PropertyName2" ColumnName="DatabaseColumn2" /> ... </MappingFragment> </EntityTypeMapping>
Just make sure that there is a node for each property / column name, and that all properties are also listed in the <EntityType Name="YourTable"> section at the top of the edmx document
Phil Apr 23 '13 at 16:33 2013-04-23 16:33
source share