IMutableEntityType.FindPrimaryKey Method

Definition

Gets primary key for this entity type. Returns null if no primary key is defined.

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey FindPrimaryKey ();
public Microsoft.EntityFrameworkCore.Metadata.IMutableKey? FindPrimaryKey ();
abstract member FindPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function FindPrimaryKey () As IMutableKey

Returns

The primary key, or null if none is defined.

Applies to