IReadOnlyProperty.IsKey Method

Definition

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

C#
public bool IsKey ();

Returns

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

Applies to

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