Share via


CSharpMigrationsGeneratorDependencies.With Method

Definition

Overloads

With(ICSharpHelper)

Clones this dependency parameter object with one service replaced.

With(ICSharpMigrationOperationGenerator)

Clones this dependency parameter object with one service replaced.

With(ICSharpSnapshotGenerator)

Clones this dependency parameter object with one service replaced.

With(ICSharpHelper)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies With (Microsoft.EntityFrameworkCore.Design.ICSharpHelper csharpHelper);
member this.With : Microsoft.EntityFrameworkCore.Design.ICSharpHelper -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies
Public Function With (csharpHelper As ICSharpHelper) As CSharpMigrationsGeneratorDependencies

Parameters

csharpHelper
ICSharpHelper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICSharpMigrationOperationGenerator)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator csharpMigrationOperationGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies
Public Function With (csharpMigrationOperationGenerator As ICSharpMigrationOperationGenerator) As CSharpMigrationsGeneratorDependencies

Parameters

csharpMigrationOperationGenerator
ICSharpMigrationOperationGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICSharpSnapshotGenerator)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpSnapshotGenerator csharpSnapshotGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpSnapshotGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies
Public Function With (csharpSnapshotGenerator As ICSharpSnapshotGenerator) As CSharpMigrationsGeneratorDependencies

Parameters

csharpSnapshotGenerator
ICSharpSnapshotGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to