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
IModelSourceconventionSetBuilder
IConventionSetBuildermodelDependencies
ModelDependenciesmodelRuntimeInitializer
IModelRuntimeInitializervalidationLogger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>
Properties
ConventionSetBuilder
The convention set to use when creating the model.
public IConventionSetBuilder ConventionSetBuilder { get; init; }
Property Value
ModelDependencies
The dependencies object for the model.
public ModelDependencies ModelDependencies { get; init; }
Property Value
ModelRuntimeInitializer
The model runtime initializer that will be used after the model building is finished.
public IModelRuntimeInitializer ModelRuntimeInitializer { get; init; }
Property Value
ModelSource
The model source.
public IModelSource ModelSource { get; init; }
Property Value
ValidationLogger
The validation logger.
public IDiagnosticsLogger<DbLoggerCategory.Model.Validation> ValidationLogger { get; init; }
Property Value
Methods
Equals(ModelCreationDependencies?)
public bool Equals(ModelCreationDependencies? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
<Clone>$()
public ModelCreationDependencies <Clone>$()
Returns
Operators
operator ==(ModelCreationDependencies?, ModelCreationDependencies?)
public static bool operator ==(ModelCreationDependencies? left, ModelCreationDependencies? right)
Parameters
Returns
operator !=(ModelCreationDependencies?, ModelCreationDependencies?)
public static bool operator !=(ModelCreationDependencies? left, ModelCreationDependencies? right)