ModelValidator.ValidateInheritanceMapping 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.
Overloads
| Name | Description |
|---|---|
| ValidateInheritanceMapping(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates inheritance mapping for an entity type. |
| ValidateInheritanceMapping(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates the mapping of inheritance in the model. |
ValidateInheritanceMapping(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
- Source:
- ModelValidator.cs
Validates inheritance mapping for an entity type.
protected virtual void ValidateInheritanceMapping(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateInheritanceMapping : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateInheritanceMapping : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateInheritanceMapping (entityType As IEntityType, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- entityType
- IEntityType
The entity type to validate.
The logger to use.
Applies to
ValidateInheritanceMapping(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
Validates the mapping of inheritance in the model.
protected virtual void ValidateInheritanceMapping(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateInheritanceMapping : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateInheritanceMapping : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateInheritanceMapping (model As IModel, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- model
- IModel
The model to validate.
The logger to use.