EdmRelationshipAttribute Constructor (String^, String^, String^, RelationshipMultiplicity, Type^, String^, RelationshipMultiplicity, Type^, Boolean)
Initializes a new instance of the EdmRelationshipAttribute class.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
public: EdmRelationshipAttribute( String^ relationshipNamespaceName, String^ relationshipName, String^ role1Name, RelationshipMultiplicity role1Multiplicity, Type^ role1Type, String^ role2Name, RelationshipMultiplicity role2Multiplicity, Type^ role2Type, bool isForeignKey )
Parameters
- relationshipNamespaceName
-
Type:
System::String^
The name of the namespace for the association in which this entity participates.
- relationshipName
-
Type:
System::String^
The name of a relationship in which this entity participates.
- role1Name
-
Type:
System::String^
Name of the role for the type at one end of the association.
- role1Multiplicity
-
Type:
System.Data.Metadata.Edm::RelationshipMultiplicity
A value of RelationshipMultiplicity that indicates the multiplicity at one end of the association, such as one or many.
- role1Type
-
Type:
System::Type^
The type of the entity at one end of the association.
- role2Name
-
Type:
System::String^
Name of the role for the type at the other end of the association.
- role2Multiplicity
-
Type:
System.Data.Metadata.Edm::RelationshipMultiplicity
A value of RelationshipMultiplicity that indicates the multiplicity at the other end of the association, such as one or many.
- role2Type
-
Type:
System::Type^
The type of the entity at the other end of the association.
- isForeignKey
-
Type:
System::Boolean
A value that indicates whether the relationship is based on the foreign key value.
Available since 4.0