Share via


MigrationsCodeGeneratorDependencies.With Method

Definition

Overloads

With(IAnnotationCodeGenerator)

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(IAnnotationCodeGenerator)

Source:
MigrationsCodeGeneratorDependencies.cs

Clones this dependency parameter object with one service replaced.

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

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

Source:
MigrationsCodeGeneratorDependencies.cs
Source:
MigrationsCodeGeneratorDependencies.cs
Source:
MigrationsCodeGeneratorDependencies.cs

Clones this dependency parameter object with one service replaced.

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

Parameters

relationalTypeMappingSource
IRelationalTypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to