EdmRelationshipAttribute EdmRelationshipAttribute EdmRelationshipAttribute EdmRelationshipAttribute Constructors

Определение

Перегрузки

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

Создает экземпляр класса EdmRelationshipAttribute.Creates an instance of the EdmRelationshipAttribute class.

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

Инициализирует новый экземпляр класса EdmRelationshipAttribute.Initializes a new instance of the EdmRelationshipAttribute class.

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

Создает экземпляр класса EdmRelationshipAttribute.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)

Параметры

relationshipNamespaceName
String String String String

Имя пространства имен для ассоциации, в которой участвует эта сущность.The name of the namespace for the association in which this entity participates.

relationshipName
String String String String

Возвращает имя связи, в которой участвует данная сущность.The name of a relationship in which this entity participates.

role1Name
String String String String

Имя роли для типа одного из окончаний ассоциации.Name of the role for the type at one end of the association.

role1Multiplicity
RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity

Значение параметра RelationshipMultiplicity, указывающее кратность одного из окончаний ассоциации, например 1 или несколько.A value of RelationshipMultiplicity that indicates the multiplicity at one end of the association, such as one or many.

role1Type
Type Type Type Type

Тип сущности, представляющей собой одно из окончаний ассоциации.The type of the entity at one end of the association.

role2Name
String String String String

Имя роли для типа другого окончания ассоциации.Name of the role for the type at the other end of the association.

role2Multiplicity
RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity

Значение параметра RelationshipMultiplicity, указывающее кратность второго окончания ассоциации, например 1 или несколько.A value of RelationshipMultiplicity that indicates the multiplicity at the other end of the association, such as one or many.

role2Type
Type Type Type Type

Тип сущности, представляющей собой другое окончание ассоциации.The type of the entity at the other end of the association.

Комментарии

typeof Оператор (GetType в Visual Basic) используется для возврата Type объект для объекта.The typeof operator (GetType in Visual Basic) is used to return the Type object for an object.

Дополнительно

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

Инициализирует новый экземпляр класса EdmRelationshipAttribute.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)

Параметры

relationshipNamespaceName
String String String String

Имя пространства имен для ассоциации, в которой участвует эта сущность.The name of the namespace for the association in which this entity participates.

relationshipName
String String String String

Возвращает имя связи, в которой участвует данная сущность.The name of a relationship in which this entity participates.

role1Name
String String String String

Имя роли для типа одного из окончаний ассоциации.Name of the role for the type at one end of the association.

role1Multiplicity
RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity

Значение параметра RelationshipMultiplicity, указывающее кратность одного из окончаний ассоциации, например 1 или несколько.A value of RelationshipMultiplicity that indicates the multiplicity at one end of the association, such as one or many.

role1Type
Type Type Type Type

Тип сущности, представляющей собой одно из окончаний ассоциации.The type of the entity at one end of the association.

role2Name
String String String String

Имя роли для типа другого окончания ассоциации.Name of the role for the type at the other end of the association.

role2Multiplicity
RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity RelationshipMultiplicity

Значение параметра RelationshipMultiplicity, указывающее кратность второго окончания ассоциации, например 1 или несколько.A value of RelationshipMultiplicity that indicates the multiplicity at the other end of the association, such as one or many.

role2Type
Type Type Type Type

Тип сущности, представляющей собой другое окончание ассоциации.The type of the entity at the other end of the association.

isForeignKey
Boolean Boolean Boolean Boolean

Значение, указывающее на то, основывается ли отношение на значении внешнего ключа.A value that indicates whether the relationship is based on the foreign key value.

Применяется к