RelationalModelValidator.ValidateAutoLoaded 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.
Validates that a property configured as not auto-loaded is not a key, foreign key, concurrency token, discriminator, or consumed by a constructor binding.
protected override void ValidateAutoLoaded(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase structuralType, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
override this.ValidateAutoLoaded : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overrides Sub ValidateAutoLoaded (property As IProperty, structuralType As ITypeBase, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- property
- IProperty
The property to validate.
- structuralType
- ITypeBase
The structural type containing the property.
The logger to use.