EdmRelationshipAttribute Constructor (String^, String^, String^, RelationshipMultiplicity, Type^, String^, RelationshipMultiplicity, Type^)
Creates an 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
)
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.
The typeof operator (GetType in Visual Basic) is used to return the Type object for an object.
Available since 3.5