KeyDiscoveryConvention.TryConfigurePrimaryKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Discovers primary key candidates and configures the primary key if found.
protected virtual void TryConfigurePrimaryKey (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder);
abstract member TryConfigurePrimaryKey : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder -> unit
override this.TryConfigurePrimaryKey : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder -> unit
Protected Overridable Sub TryConfigurePrimaryKey (entityTypeBuilder As IConventionEntityTypeBuilder)
Parameters
- entityTypeBuilder
- IConventionEntityTypeBuilder
The entity type builder.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework