AssociationAttribute(String, String, String) Конструктор

Определение

Инициализирует новый экземпляр класса AssociationAttribute.

public:
 AssociationAttribute(System::String ^ name, System::String ^ thisKey, System::String ^ otherKey);
public AssociationAttribute (string name, string thisKey, string otherKey);
new System.ComponentModel.DataAnnotations.AssociationAttribute : string * string * string -> System.ComponentModel.DataAnnotations.AssociationAttribute
Public Sub New (name As String, thisKey As String, otherKey As String)

Параметры

name
String

Имя ассоциации.

thisKey
String

Список разделенных запятыми имен свойств значений ключей со стороны thisKey ассоциации.

otherKey
String

Список разделенных запятыми имен свойств значений ключей со стороны otherKey ассоциации.

Комментарии

Если связь двунаправленная, имя должно быть одинаковым на обеих сторонах ассоциации.

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