IReadOnlyProperty.IsForeignKey Method

Definition

Gets a value indicating whether this property is used as a foreign key (or part of a composite foreign key).

C#
public bool IsForeignKey ();

Returns

true if the property is used as a foreign key, otherwise false.

Applies to

Produkt Versioner
Entity Framework Core 6.0, 7.0, 8.0, 9.0