Compartir a través de


ModelValidator.ValidateDiscriminatorValues Método

Definición

Sobrecargas

ValidateDiscriminatorValues(IEntityType)

Valida el discriminador y los valores de todos los tipos de entidad derivados del especificado.

ValidateDiscriminatorValues(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
Obsoletos.

Valida la asignación o configuración de herencia en el modelo.

ValidateDiscriminatorValues(IEntityType)

Valida el discriminador y los valores de todos los tipos de entidad derivados del especificado.

protected virtual void ValidateDiscriminatorValues (Microsoft.EntityFrameworkCore.Metadata.IEntityType rootEntityType);
abstract member ValidateDiscriminatorValues : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
override this.ValidateDiscriminatorValues : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
Protected Overridable Sub ValidateDiscriminatorValues (rootEntityType As IEntityType)

Parámetros

rootEntityType
IEntityType

Tipo de entidad que se va a validar.

Se aplica a

ValidateDiscriminatorValues(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Precaución

Use ValidateInheritanceMapping

Valida la asignación o configuración de herencia en el modelo.

protected virtual void ValidateDiscriminatorValues (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
[System.Obsolete("Use ValidateInheritanceMapping")]
protected virtual void ValidateDiscriminatorValues (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateDiscriminatorValues : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateDiscriminatorValues : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
[<System.Obsolete("Use ValidateInheritanceMapping")>]
abstract member ValidateDiscriminatorValues : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateDiscriminatorValues : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateDiscriminatorValues (model As IModel, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

Parámetros

model
IModel

Modelo que se va a validar.

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

El registrador que se va a usar.

Atributos

Se aplica a