Share via


MigrationsScaffolderDependencies Constructors

Definition

Overloads

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.

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.

public MigrationsScaffolderDependencies (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly migrationsAssembly, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer migrationsModelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator migrationsIdGenerator, Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator migrationCodeGenerator, Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository historyRepository, Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter, Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider databaseProvider, Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor);
new Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator * Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator * Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository * Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter * Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider * Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Sub New (currentDbContext As ICurrentDbContext, model As IModel, migrationsAssembly As IMigrationsAssembly, migrationsModelDiffer As IMigrationsModelDiffer, migrationsIdGenerator As IMigrationsIdGenerator, migrationCodeGenerator As IMigrationsCodeGenerator, historyRepository As IHistoryRepository, operationReporter As IOperationReporter, databaseProvider As IDatabaseProvider, snapshotModelProcessor As ISnapshotModelProcessor)

Parameters

currentDbContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext

The current DbContext.

model
IModel

The model.

migrationsAssembly
IMigrationsAssembly

The migrations assembly.

migrationsModelDiffer
IMigrationsModelDiffer

The migrations model differ.

migrationsIdGenerator
IMigrationsIdGenerator

The migrations ID generator.

migrationCodeGenerator
IMigrationsCodeGenerator

The migrations code generator.

historyRepository
IHistoryRepository

The history repository.

operationReporter
Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter

The operation reporter.

databaseProvider
IDatabaseProvider

The database provider.

snapshotModelProcessor
Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor

The snapshot model processor.

Applies to

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

Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs

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.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public MigrationsScaffolderDependencies (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly migrationsAssembly, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer migrationsModelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator migrationsIdGenerator, Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector migrationsCodeGeneratorSelector, Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository historyRepository, Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter, Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider databaseProvider, Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor, Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator * Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector * Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository * Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter * Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider * Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor * Microsoft.EntityFrameworkCore.Migrations.IMigrator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Sub New (currentContext As ICurrentDbContext, model As IModel, migrationsAssembly As IMigrationsAssembly, migrationsModelDiffer As IMigrationsModelDiffer, migrationsIdGenerator As IMigrationsIdGenerator, migrationsCodeGeneratorSelector As IMigrationsCodeGeneratorSelector, historyRepository As IHistoryRepository, operationReporter As IOperationReporter, databaseProvider As IDatabaseProvider, snapshotModelProcessor As ISnapshotModelProcessor, migrator As IMigrator)

Parameters

currentContext
ICurrentDbContext
model
IModel
migrationsAssembly
IMigrationsAssembly
migrationsModelDiffer
IMigrationsModelDiffer
migrationsIdGenerator
IMigrationsIdGenerator
migrationsCodeGeneratorSelector
IMigrationsCodeGeneratorSelector
historyRepository
IHistoryRepository
operationReporter
Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter
databaseProvider
IDatabaseProvider
snapshotModelProcessor
Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor
migrator
IMigrator
Attributes

Remarks

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 C# 'with' operator. Do not call the constructor at any point in this process.

Applies to

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

Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs

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.

public MigrationsScaffolderDependencies (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly migrationsAssembly, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer migrationsModelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator migrationsIdGenerator, Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector migrationsCodeGeneratorSelector, Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository historyRepository, Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter, Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider databaseProvider, Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor, Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator);
new Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator * Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector * Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository * Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter * Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider * Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor * Microsoft.EntityFrameworkCore.Migrations.IMigrator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Sub New (currentDbContext As ICurrentDbContext, model As IModel, migrationsAssembly As IMigrationsAssembly, migrationsModelDiffer As IMigrationsModelDiffer, migrationsIdGenerator As IMigrationsIdGenerator, migrationsCodeGeneratorSelector As IMigrationsCodeGeneratorSelector, historyRepository As IHistoryRepository, operationReporter As IOperationReporter, databaseProvider As IDatabaseProvider, snapshotModelProcessor As ISnapshotModelProcessor, migrator As IMigrator)

Parameters

currentDbContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext

The current DbContext.

model
IModel

The model.

migrationsAssembly
IMigrationsAssembly

The migrations assembly.

migrationsModelDiffer
IMigrationsModelDiffer

The migrations model differ.

migrationsIdGenerator
IMigrationsIdGenerator

The migrations ID generator.

migrationsCodeGeneratorSelector
IMigrationsCodeGeneratorSelector

The migrations code generator selector.

historyRepository
IHistoryRepository

The history repository.

operationReporter
Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter

The operation reporter.

databaseProvider
IDatabaseProvider

The database provider.

snapshotModelProcessor
Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor

The snapshot model processor.

migrator
IMigrator

The migrator.

Applies to