Språk

ModelValidator.ValidateAutoLoaded Method

Definition

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 virtual void ValidateAutoLoaded(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase structuralType, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateAutoLoaded : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateAutoLoaded : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable 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.

Applies to