แก้ไข

แชร์ผ่าน


ForeignKeyAttribute.Name Property

Definition

Gets the name of the associated navigation property or of the associated foreign keys.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

Property Value

The name of the associated navigation property or of the associated foreign keys.

Remarks

If the ForeignKey attribute is applied to a foreign key property, the Name property specifies the name of the associated navigation property. If the ForeignKey attribute is applied to a navigation property, the Name property specifies the name of one or more associated foreign keys. If a navigation property has multiple foreign keys, commas separate the list of foreign key names. For more information, see Code First Data Annotations.

Applies to