共用方式為


EdmRelationshipAttribute 建構函式

定義

初始化 EdmRelationshipAttribute 類別的新實例。

多載

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

建立 EdmRelationshipAttribute 類別的實例。

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

初始化 EdmRelationshipAttribute 類別的新實例。

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

建立 EdmRelationshipAttribute 類別的實例。

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)

參數

relationshipNamespaceName
String

此實體參與之關聯之命名空間的名稱。

relationshipName
String

此實體參與之關聯性的名稱。

role1Name
String

關聯一端類型的角色名稱。

role1Multiplicity
RelationshipMultiplicity

RelationshipMultiplicity 值,表示關聯一端的多重性,例如一或多個。

role1Type
Type

關聯一端之實體的類型。

role2Name
String

關聯另一端類型的角色名稱。

role2Multiplicity
RelationshipMultiplicity

RelationshipMultiplicity,表示關聯另一端的多重性,例如一或多個。

role2Type
Type

關聯另一端實體的類型。

備註

typeof 運算子 (在 Visual Basic 中GetType) 是用來傳回物件的 Type 物件。

另請參閱

適用於

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

初始化 EdmRelationshipAttribute 類別的新實例。

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)

參數

relationshipNamespaceName
String

此實體參與之關聯之命名空間的名稱。

relationshipName
String

此實體參與之關聯性的名稱。

role1Name
String

關聯一端類型的角色名稱。

role1Multiplicity
RelationshipMultiplicity

RelationshipMultiplicity 值,表示關聯一端的多重性,例如一或多個。

role1Type
Type

關聯一端之實體的類型。

role2Name
String

關聯另一端類型的角色名稱。

role2Multiplicity
RelationshipMultiplicity

RelationshipMultiplicity,表示關聯另一端的多重性,例如一或多個。

role2Type
Type

關聯另一端實體的類型。

isForeignKey
Boolean

值,指出關聯性是否以外鍵值為基礎。

適用於