C# Class System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute

Inheritance: Attribute
Mostra file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
ForeignKeyAttribute ( string name ) : System.Globalization

Initializes a new instance of the ForeignKeyAttribute class.

Method Details

ForeignKeyAttribute() public method

Initializes a new instance of the ForeignKeyAttribute class.
public ForeignKeyAttribute ( string name ) : System.Globalization
name 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. ///
return System.Globalization