Прочетете на английски

Споделяне чрез


IReadOnlyProperty.IsPrimaryKey Method

Definition

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

C#
public virtual bool IsPrimaryKey ();

Returns

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

Applies to

Продукт Версии
Entity Framework Core 6.0, 7.0, 8.0, 9.0