Table of Contents

Class ModelCreationDependencies

Namespace
Microsoft.EntityFrameworkCore
Assembly
Microsoft.EntityFrameworkCore.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public sealed record ModelCreationDependencies : IEquatable<ModelCreationDependencies>
Inheritance
ModelCreationDependencies
Implements
Inherited Members

Remarks

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

Constructors

ModelCreationDependencies(IModelSource, IConventionSetBuilder, ModelDependencies, IModelRuntimeInitializer, IDiagnosticsLogger<Validation>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[EntityFrameworkInternal]
public ModelCreationDependencies(IModelSource modelSource, IConventionSetBuilder conventionSetBuilder, ModelDependencies modelDependencies, IModelRuntimeInitializer modelRuntimeInitializer, IDiagnosticsLogger<DbLoggerCategory.Model.Validation> validationLogger)

Parameters

modelSource IModelSource
conventionSetBuilder IConventionSetBuilder
modelDependencies ModelDependencies
modelRuntimeInitializer IModelRuntimeInitializer
validationLogger IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

Properties

ConventionSetBuilder

The convention set to use when creating the model.

public IConventionSetBuilder ConventionSetBuilder { get; init; }

Property Value

IConventionSetBuilder

ModelDependencies

The dependencies object for the model.

public ModelDependencies ModelDependencies { get; init; }

Property Value

ModelDependencies

ModelRuntimeInitializer

The model runtime initializer that will be used after the model building is finished.

public IModelRuntimeInitializer ModelRuntimeInitializer { get; init; }

Property Value

IModelRuntimeInitializer

ModelSource

The model source.

public IModelSource ModelSource { get; init; }

Property Value

IModelSource

ValidationLogger

The validation logger.

public IDiagnosticsLogger<DbLoggerCategory.Model.Validation> ValidationLogger { get; init; }

Property Value

IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

Methods

Equals(ModelCreationDependencies?)

public bool Equals(ModelCreationDependencies? other)

Parameters

other ModelCreationDependencies

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

<Clone>$()

public ModelCreationDependencies <Clone>$()

Returns

ModelCreationDependencies

Operators

operator ==(ModelCreationDependencies?, ModelCreationDependencies?)

public static bool operator ==(ModelCreationDependencies? left, ModelCreationDependencies? right)

Parameters

left ModelCreationDependencies
right ModelCreationDependencies

Returns

bool

operator !=(ModelCreationDependencies?, ModelCreationDependencies?)

public static bool operator !=(ModelCreationDependencies? left, ModelCreationDependencies? right)

Parameters

left ModelCreationDependencies
right ModelCreationDependencies

Returns

bool