Partilhar via


RelationalModelValidator.ValidateValueGeneration Método

Definição

Valida se a geração de valor de chave é válida.

protected virtual void ValidateValueGeneration (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateValueGeneration : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateValueGeneration : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateValueGeneration (entityType As IEntityType, key As IKey, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

Parâmetros

entityType
IEntityType

O tipo de entidade.

key
IKey

A chave.

Aplica-se a