Share via


MigrationsScaffolderDependencies Class

Definition

Service dependencies parameter class for MigrationsScaffolder

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public sealed class MigrationsScaffolderDependencies
public sealed class MigrationsScaffolderDependencies : IEquatable<Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies>
type MigrationsScaffolderDependencies = class
type MigrationsScaffolderDependencies = class
    interface IEquatable<MigrationsScaffolderDependencies>
Public NotInheritable Class MigrationsScaffolderDependencies
Public NotInheritable Class MigrationsScaffolderDependencies
Implements IEquatable(Of MigrationsScaffolderDependencies)
Inheritance
MigrationsScaffolderDependencies
Implements

Remarks

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the C# 'with' operator. Do not call the constructor at any point in this process.

Constructors

MigrationsScaffolderDependencies(ICurrentDbContext, IModel, IMigrationsAssembly, IMigrationsModelDiffer, IMigrationsIdGenerator, IMigrationsCodeGenerator, IHistoryRepository, IOperationReporter, IDatabaseProvider, ISnapshotModelProcessor)

Creates the service dependencies parameter object for a MigrationsScaffolder.

Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

MigrationsScaffolderDependencies(ICurrentDbContext, IModel, IMigrationsAssembly, IMigrationsModelDiffer, IMigrationsIdGenerator, IMigrationsCodeGeneratorSelector, IHistoryRepository, IOperationReporter, IDatabaseProvider, ISnapshotModelProcessor, IMigrator)

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.

MigrationsScaffolderDependencies(ICurrentDbContext, IModel, IMigrationsAssembly, IMigrationsModelDiffer, IMigrationsIdGenerator, IMigrationsCodeGeneratorSelector, IHistoryRepository, IOperationReporter, IDatabaseProvider, ISnapshotModelProcessor, IMigrator)

Creates the service dependencies parameter object for a MigrationsScaffolder.

Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Properties

CurrentContext

The current DbContext.

CurrentDbContext

The current DbContext.

DatabaseProvider

The database provider.

HistoryRepository

The history repository.

MigrationCodeGenerator
Obsolete.

The migrations code generator.

MigrationsAssembly

The migrations assembly.

MigrationsCodeGeneratorSelector

The migrations code generator selector.

MigrationsIdGenerator

The migrations ID generator.

MigrationsModelDiffer

The migrations model differ.

Migrator

The migrator.

Model

The model.

OperationReporter

The operation reporter.

SnapshotModelProcessor

The snapshot model processor.

Methods

<Clone>$()
Equals(MigrationsScaffolderDependencies)
Equals(Object)
GetHashCode()
ToString()
With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IDatabaseProvider)

Clones this dependency parameter object with one service replaced.

With(IHistoryRepository)

Clones this dependency parameter object with one service replaced.

With(IMigrationsAssembly)

Clones this dependency parameter object with one service replaced.

With(IMigrationsCodeGenerator)
Obsolete.

Clones this dependency parameter object with one service replaced.

With(IMigrationsCodeGeneratorSelector)

Clones this dependency parameter object with one service replaced.

With(IMigrationsIdGenerator)

Clones this dependency parameter object with one service replaced.

With(IMigrationsModelDiffer)

Clones this dependency parameter object with one service replaced.

With(IMigrator)

Clones this dependency parameter object with one service replaced.

With(IModel)

Clones this dependency parameter object with one service replaced.

With(IOperationReporter)

Clones this dependency parameter object with one service replaced.

With(ISnapshotModelProcessor)

Clones this dependency parameter object with one service replaced.

Operators

Equality(MigrationsScaffolderDependencies, MigrationsScaffolderDependencies)
Inequality(MigrationsScaffolderDependencies, MigrationsScaffolderDependencies)

Applies to