Idioma

AutoLoadConvention Class

Definition

A convention that configures properties based on provider-specific heuristics to determine whether they should be auto-loaded. Override ShouldBeAutoLoaded(IConventionProperty) to customize which properties are excluded from automatic loading.

[System.Runtime.CompilerServices.Nullable(0)]
public class AutoLoadConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type AutoLoadConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class AutoLoadConvention
Implements IModelFinalizingConvention
Inheritance
AutoLoadConvention
Derived
Attributes
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

Name Description
AutoLoadConvention(ProviderConventionSetBuilderDependencies)

A convention that configures properties based on provider-specific heuristics to determine whether they should be auto-loaded. Override ShouldBeAutoLoaded(IConventionProperty) to customize which properties are excluded from automatic loading.

Properties

Name Description
Dependencies

Dependencies for this service.

Methods

Name Description
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

ShouldBeAutoLoaded(IConventionProperty)

Returns a value indicating whether the given property should be auto-loaded.

Applies to