Partager via


ModelValidator.ValidateDiscriminatorValues Method

Definition

Overloads

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

Validates the mapping/configuration of inheritance in the model.

ValidateDiscriminatorValues(IEntityType)

Validates the discriminator and values for all entity types derived from the given one.

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

Source:
ModelValidator.cs
Source:
ModelValidator.cs
Source:
ModelValidator.cs
Source:
ModelValidator.cs

Caution

Use ValidateInheritanceMapping

Validates the mapping/configuration of inheritance in the model.

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))

Parameters

model
IModel

The model to validate.

Attributes

Applies to

ValidateDiscriminatorValues(IEntityType)

Source:
ModelValidator.cs
Source:
ModelValidator.cs
Source:
ModelValidator.cs
Source:
ModelValidator.cs
Source:
ModelValidator.cs

Validates the discriminator and values for all entity types derived from the given one.

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)

Parameters

rootEntityType
IEntityType

The entity type to validate.

Applies to