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

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the EdmRelationshipAttribute class.

Namespace:   System.Data.Objects.DataClasses
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.

.NET Framework
Available since 4.0
Return to top
Show: