AssociationAttribute(String, String, String) Construtor

Definição

Inicializa uma nova instância da AssociationAttribute classe.

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)

Parâmetros

name
String

O nome da associação.

thisKey
String

Uma lista separada por vírgulas dos nomes das propriedades dos valores-chave do thisKey lado da associação.

otherKey
String

Uma lista separada por vírgulas dos nomes das propriedades dos valores-chave do otherKey lado da associação.

Observações

Se a associação for bidirecional, o nome deve ser o mesmo em ambos os lados da associação.

Aplica-se a