Problem with displaying Entityframework structure

I use the entity structure in mvc, but I have a problem with this method. All I am doing is the reflection method below and don’t understand why I am getting the field matching error.

I also get the following error in the fields mentioned here.

Error: -

Error   13  Error 3021: Problem in mapping fragments starting at line 205:Each of the following   
columns in table FormBuilder_Form_Fields is mapped to multiple conceptual side properties:
FormBuilder_Form_Fields.ID is mapped to <FormFieldsForm.Form.ID, FormFieldsForm.FormFields.ID>
 C:\NewDevelopment\CaseddimensionsCMS\CaseddimensionsCMS\CaseddimensionsCms.edmx    206 11  CaseddimensionsCMS

Error   14  Error 3021: Problem in mapping fragments starting at line 228:Each of the following columns in table FormBuilder_field_values is mapped to multiple conceptual side properties:
FormBuilder_field_values.ID is mapped to <FormFieldValues.FieldValues.ID, FormFieldValues.Form.ID>

I am not sure if this means that this is a completely new entity structure.

A screenshot of the edmx file was included in the layout designer:

pic

This is a pack of my edmx file

http://pastebin.com/GeL6mZd4

How long the code did not want to post it here.

+4
source share
1 answer

With the same problem, I found a solution here . In short, you should:

, , edmx, , , " ..." " XML".

CSDL ProductProductImages :

, :

<Association Name="FormsFormsFields">
  <End Type="TableSplittingModel.Forms" Role="Form" Multiplicity="1" />
  <End Type="TableSplittingModel.FormFields" Role="FormFields" Multiplicity="1" />
</Association>

ReferentialConstraint

<Association Name="FormsFormFields">
  <End Type="TableSplittingModel.Forms" Role="Forms" Multiplicity="1" />
  <End Type="TableSplittingModel.FormFields" Role="FormFields" Multiplicity="1" />
  <ReferentialConstraint>
    <Principal Role="Forms"><PropertyRef Name="id"/></Principal>
    <Dependent Role="FormFields"><PropertyRef Name="id"/></Dependent>
  </ReferentialConstraint>
</Association>
+6

All Articles