ITable.PrimaryKey Property

Definition

Gets the primary key for this table.

C#
public Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint PrimaryKey { get; }
C#
public Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint? PrimaryKey { get; }

Property Value

Applies to

Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0