ModelValidator.ValidatePropertyMapping 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 |
|---|---|
| ValidatePropertyMapping(IConventionComplexProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates property mappings for a given complex property. |
| ValidatePropertyMapping(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates property mappings. |
| ValidatePropertyMapping(IConventionTypeBase, IConventionModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates property mappings for a given type. |
ValidatePropertyMapping(IConventionComplexProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
- Source:
- ModelValidator.cs
Validates property mappings for a given complex property.
protected virtual void ValidatePropertyMapping(Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty complexProperty, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidatePropertyMapping : Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidatePropertyMapping : Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidatePropertyMapping (complexProperty As IConventionComplexProperty, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- complexProperty
- IConventionComplexProperty
The complex property to validate.
The logger to use.
Applies to
ValidatePropertyMapping(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
Validates property mappings.
protected virtual void ValidatePropertyMapping(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidatePropertyMapping : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidatePropertyMapping : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidatePropertyMapping (model As IModel, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- model
- IModel
The model.
The logger to use.
Applies to
ValidatePropertyMapping(IConventionTypeBase, IConventionModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
- Source:
- ModelValidator.cs
Validates property mappings for a given type.
protected virtual void ValidatePropertyMapping(Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase structuralType, Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidatePropertyMapping : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidatePropertyMapping : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidatePropertyMapping (structuralType As IConventionTypeBase, model As IConventionModel, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- structuralType
- IConventionTypeBase
The type base to validate.
- model
- IConventionModel
The model to validate.
The logger to use.