ForeignKeyAttribute Constructor
Initializes a new instance of the ForeignKeyAttribute class.
Namespace: System.ComponentModel.DataAnnotations
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Sub New ( _
name As String _
)
'Usage
Dim name As String
Dim instance As New ForeignKeyAttribute(name)
public ForeignKeyAttribute(
string name
)
public:
ForeignKeyAttribute(
String^ name
)
new :
name:string -> ForeignKeyAttribute
public function ForeignKeyAttribute(
name : String
)
Parameters
- name
Type: System.String
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). If a navigation property has multiple foreign keys, a comma separated list should be supplied.