Langue

RelationalModelValidator.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 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.

Applies to