none
Metadata information for the relationship could not be retrieved RRS feed

  • Question

  • Hello all,

    I have two entities (in the same edmx), one is named "I" and another is named "AM".

    The relationship is:

    "I" includes "AM" set.

    When I call the following syntax statement to get/change value.

    I i = new I();
    i.AM.property1 = "abc";

    It always pops up the following errors in the edmx.Designer.cs file.

    Metadata information for the relationship 'MDISModels.AdministeredMedicationMedicationInventory' could not be retrieved. If mapping attributes are used, make sure that the EdmRelationshipAttribute for the relationship has been defined in the assembly.  When using convention-based mapping, metadata information for relationships between detached entities cannot be determined.
    Parameter name: relationshipName

    I referred the following links, but no helps.

    http://stackoverflow.com/questions/1074337/metadataexception-when-using-entity-framework-entity-connection

    Any solutions?

    Thanks,

    Wednesday, July 24, 2013 9:21 AM

Answers