CSharpSnapshotGeneratorDependencies.With Method

Definition

Overloads

With(IAnnotationCodeGenerator)

Clones this dependency parameter object with one service replaced.

With(ICSharpHelper)

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(IAnnotationCodeGenerator)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies With (Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
member this.With : Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies
Public Function With (annotationCodeGenerator As IAnnotationCodeGenerator) As CSharpSnapshotGeneratorDependencies

Parameters

annotationCodeGenerator
IAnnotationCodeGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICSharpHelper)

Clones this dependency parameter object with one service replaced.

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

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(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource relationalTypeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorDependencies
Public Function With (relationalTypeMappingSource As IRelationalTypeMappingSource) As CSharpSnapshotGeneratorDependencies

Parameters

relationalTypeMappingSource
IRelationalTypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to