Share via


MigrationsScaffolderDependencies.With Method

Definition

Overloads

With(IMigrator)

Clones this dependency parameter object with one service replaced.

With(IMigrationsModelDiffer)

Clones this dependency parameter object with one service replaced.

With(IMigrationsIdGenerator)

Clones this dependency parameter object with one service replaced.

With(IMigrationsAssembly)

Clones this dependency parameter object with one service replaced.

With(IHistoryRepository)

Clones this dependency parameter object with one service replaced.

With(IModel)

Clones this dependency parameter object with one service replaced.

With(IMigrationsCodeGenerator)
Obsolete.

Clones this dependency parameter object with one service replaced.

With(ISnapshotModelProcessor)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IOperationReporter)

Clones this dependency parameter object with one service replaced.

With(IMigrationsCodeGeneratorSelector)

Clones this dependency parameter object with one service replaced.

With(IDatabaseProvider)

Clones this dependency parameter object with one service replaced.

With(IMigrator)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrator As IMigrator) As MigrationsScaffolderDependencies

Parameters

migrator
IMigrator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsModelDiffer)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer migrationsModelDiffer);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsModelDiffer As IMigrationsModelDiffer) As MigrationsScaffolderDependencies

Parameters

migrationsModelDiffer
IMigrationsModelDiffer

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsIdGenerator)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator migrationsIdGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsIdGenerator As IMigrationsIdGenerator) As MigrationsScaffolderDependencies

Parameters

migrationsIdGenerator
IMigrationsIdGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsAssembly)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly migrationsAssembly);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsAssembly As IMigrationsAssembly) As MigrationsScaffolderDependencies

Parameters

migrationsAssembly
IMigrationsAssembly

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IHistoryRepository)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository historyRepository);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (historyRepository As IHistoryRepository) As MigrationsScaffolderDependencies

Parameters

historyRepository
IHistoryRepository

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IModel)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IModel model);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (model As IModel) As MigrationsScaffolderDependencies

Parameters

model
IModel

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsCodeGenerator)

Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs

Caution

Use an MigrationCodeGeneratorSelector instead.

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator migrationCodeGenerator);
[System.Obsolete("Use an MigrationCodeGeneratorSelector instead.")]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator migrationCodeGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<System.Obsolete("Use an MigrationCodeGeneratorSelector instead.")>]
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationCodeGenerator As IMigrationsCodeGenerator) As MigrationsScaffolderDependencies

Parameters

migrationCodeGenerator
IMigrationsCodeGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(ISnapshotModelProcessor)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (snapshotModelProcessor As ISnapshotModelProcessor) As MigrationsScaffolderDependencies

Parameters

snapshotModelProcessor
Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(ICurrentDbContext)

Source:
MigrationsScaffolderDependencies.cs
Source:
MigrationsScaffolderDependencies.cs

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext);
member this.With : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (currentDbContext As ICurrentDbContext) As MigrationsScaffolderDependencies

Parameters

currentDbContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICurrentDbContext)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (currentContext As ICurrentDbContext) As MigrationsScaffolderDependencies

Parameters

currentContext
ICurrentDbContext

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IOperationReporter)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter);
member this.With : Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (operationReporter As IOperationReporter) As MigrationsScaffolderDependencies

Parameters

operationReporter
Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(IMigrationsCodeGeneratorSelector)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector migrationsCodeGeneratorSelector);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsCodeGeneratorSelector As IMigrationsCodeGeneratorSelector) As MigrationsScaffolderDependencies

Parameters

migrationsCodeGeneratorSelector
IMigrationsCodeGeneratorSelector

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDatabaseProvider)

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider databaseProvider);
member this.With : Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (databaseProvider As IDatabaseProvider) As MigrationsScaffolderDependencies

Parameters

databaseProvider
IDatabaseProvider

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to