Method TryConfigurePrimaryKey
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Conventions
- Assembly
- MongoDB.EntityFrameworkCore.dll
TryConfigurePrimaryKey(IConventionEntityTypeBuilder)
Discovers primary key candidates and configures the primary key if found.
protected override void TryConfigurePrimaryKey(IConventionEntityTypeBuilder entityTypeBuilder)
Parameters
entityTypeBuilder
IConventionEntityTypeBuilderThe entity type builder.