Metadata information for the relationship '{0}' could not be retrieved. If mapping attributes are used, make sure that the ...

Metadata information for the relationship '{0}' 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.