ForeignKeyAttribute.Name Property

If placed on a foreign key property, the name of the associated navigation property. If placed on a navigation property, the name of the associated foreign key(s).

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public ReadOnly Property Name As String
    Get
'Usage
Dim instance As ForeignKeyAttribute
Dim value As String

value = instance.Name
public string Name { get; }
public:
property String^ Name {
    String^ get ();
}
member Name : string
function get Name () : String

Property Value

Type: System.String

See Also

Reference

ForeignKeyAttribute Class

System.ComponentModel.DataAnnotations Namespace