AssociationType.IsForeignKey Property

 

Gets the Boolean property value that specifies whether the column is a foreign key.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

public bool IsForeignKey { get; }

Property Value

Type: System.Boolean

A Boolean value that specifies whether the column is a foreign key. If true, the column is a foreign key. If false (default), the column is not a foreign key.