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 的属性名称的逗号分隔列表。

注解

如果关联是双向的,则关联双方的名称必须相同。

适用于