EdmRelationshipAttribute Constructor

 

EdmRelationshipAttribute Constructor (String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type)

Creates an instance of the EdmRelationshipAttribute class.

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.Entity.Core.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.Entity.Core.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.


EdmRelationshipAttribute Constructor (String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type, Boolean)

Initializes a new instance of the EdmRelationshipAttribute class.

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.Entity.Core.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.Entity.Core.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.