ModelValidator.ValidateNoShadowEntities Método

Definición

Sobrecargas

ValidateNoShadowEntities(IModel)

Esta API admite la infraestructura de Entity Framework Core y no está pensada para usarse directamente desde el código. Esta API puede cambiar o quitarse en versiones futuras.

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

Valida que el modelo no contiene ningún tipo de entidad sin un tipo CLR correspondiente.

ValidateNoShadowEntities(IModel)

Esta API admite la infraestructura de Entity Framework Core y no está pensada para usarse directamente desde el código. Esta API puede cambiar o quitarse en versiones futuras.

protected virtual void ValidateNoShadowEntities (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel -> unit
override this.ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel -> unit
Protected Overridable Sub ValidateNoShadowEntities (model As IModel)

Parámetros

model
IModel

Se aplica a

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

Precaución

Shadow entity types cannot be created anymore

Valida que el modelo no contiene ningún tipo de entidad sin un tipo CLR correspondiente.

protected virtual void ValidateNoShadowEntities (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
[System.Obsolete("Shadow entity types cannot be created anymore")]
protected virtual void ValidateNoShadowEntities (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
[<System.Obsolete("Shadow entity types cannot be created anymore")>]
abstract member ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateNoShadowEntities (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