ForeignKeyAttribute.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.