Επεξεργασία

Κοινή χρήση μέσω


AssociationAttribute(String, String, String) Constructor

Definition

Initializes a new instance of the AssociationAttribute class.

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)

Parameters

name
String

The name of the association.

thisKey
String

A comma-separated list of the property names of the key values on the thisKey side of the association.

otherKey
String

A comma-separated list of the property names of the key values on the otherKey side of the association.

Remarks

If the association is bi-directional, the name must be the same on both sides of the association.

Applies to