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

一个指示关系是否基于外键值的值。

适用于