Share via


ITable.PrimaryKey Property

Definition

Gets the primary key for this table.

[System.Runtime.CompilerServices.Nullable(2)]
public Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint? PrimaryKey { get; }
public Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint PrimaryKey { get; }
public Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint? PrimaryKey { get; }
[<System.Runtime.CompilerServices.Nullable(2)>]
member this.PrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint
member this.PrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint
Public ReadOnly Property PrimaryKey As IPrimaryKeyConstraint

Property Value

Attributes

Applies to