EdmRelationshipAttribute Constructors

Definition

Initializes a new instance of the EdmRelationshipAttribute class.

Overloads

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

Creates an instance of the EdmRelationshipAttribute class.

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

Initializes a new instance of the EdmRelationshipAttribute class.

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

Creates an instance of the EdmRelationshipAttribute class.

public:
 EdmRelationshipAttribute(System::String ^ relationshipNamespaceName, System::String ^ relationshipName, System::String ^ role1Name, System::Data::Metadata::Edm::RelationshipMultiplicity role1Multiplicity, Type ^ role1Type, System::String ^ role2Name, System::Data::Metadata::Edm::RelationshipMultiplicity role2Multiplicity, Type ^ role2Type);
public EdmRelationshipAttribute (string relationshipNamespaceName, string relationshipName, string role1Name, System.Data.Metadata.Edm.RelationshipMultiplicity role1Multiplicity, Type role1Type, string role2Name, System.Data.Metadata.Edm.RelationshipMultiplicity role2Multiplicity, Type role2Type);
new System.Data.Objects.DataClasses.EdmRelationshipAttribute : string * string * string * System.Data.Metadata.Edm.RelationshipMultiplicity * Type * string * System.Data.Metadata.Edm.RelationshipMultiplicity * Type -> System.Data.Objects.DataClasses.EdmRelationshipAttribute
Public Sub New (relationshipNamespaceName As String, relationshipName As String, role1Name As String, role1Multiplicity As RelationshipMultiplicity, role1Type As Type, role2Name As String, role2Multiplicity As RelationshipMultiplicity, role2Type As Type)

Parameters

relationshipNamespaceName
String

The name of the namespace for the association in which this entity participates.

relationshipName
String

The name of a relationship in which this entity participates.

role1Name
String

Name of the role for the type at one end of the association.

role1Multiplicity
RelationshipMultiplicity

A value of RelationshipMultiplicity that indicates the multiplicity at one end of the association, such as one or many.

role1Type
Type

The type of the entity at one end of the association.

role2Name
String

Name of the role for the type at the other end of the association.

role2Multiplicity
RelationshipMultiplicity

A value of RelationshipMultiplicity that indicates the multiplicity at the other end of the association, such as one or many.

role2Type
Type

The type of the entity at the other end of the association.

Remarks

The typeof operator (GetType in Visual Basic) is used to return the Type object for an object.

See also

Applies to

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

Initializes a new instance of the EdmRelationshipAttribute class.

public:
 EdmRelationshipAttribute(System::String ^ relationshipNamespaceName, System::String ^ relationshipName, System::String ^ role1Name, System::Data::Metadata::Edm::RelationshipMultiplicity role1Multiplicity, Type ^ role1Type, System::String ^ role2Name, System::Data::Metadata::Edm::RelationshipMultiplicity role2Multiplicity, Type ^ role2Type, bool isForeignKey);
public EdmRelationshipAttribute (string relationshipNamespaceName, string relationshipName, string role1Name, System.Data.Metadata.Edm.RelationshipMultiplicity role1Multiplicity, Type role1Type, string role2Name, System.Data.Metadata.Edm.RelationshipMultiplicity role2Multiplicity, Type role2Type, bool isForeignKey);
new System.Data.Objects.DataClasses.EdmRelationshipAttribute : string * string * string * System.Data.Metadata.Edm.RelationshipMultiplicity * Type * string * System.Data.Metadata.Edm.RelationshipMultiplicity * Type * bool -> System.Data.Objects.DataClasses.EdmRelationshipAttribute
Public Sub New (relationshipNamespaceName As String, relationshipName As String, role1Name As String, role1Multiplicity As RelationshipMultiplicity, role1Type As Type, role2Name As String, role2Multiplicity As RelationshipMultiplicity, role2Type As Type, isForeignKey As Boolean)

Parameters

relationshipNamespaceName
String

The name of the namespace for the association in which this entity participates.

relationshipName
String

The name of a relationship in which this entity participates.

role1Name
String

Name of the role for the type at one end of the association.

role1Multiplicity
RelationshipMultiplicity

A value of RelationshipMultiplicity that indicates the multiplicity at one end of the association, such as one or many.

role1Type
Type

The type of the entity at one end of the association.

role2Name
String

Name of the role for the type at the other end of the association.

role2Multiplicity
RelationshipMultiplicity

A value of RelationshipMultiplicity that indicates the multiplicity at the other end of the association, such as one or many.

role2Type
Type

The type of the entity at the other end of the association.

isForeignKey
Boolean

A value that indicates whether the relationship is based on the foreign key value.

Applies to