Share via


MigrationsSqlGeneratorDependencies.With Method

Definition

Overloads

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Migrations>)

Clones this dependency parameter object with one service replaced.

With(ILoggingOptions)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IRelationalCommandBuilderFactory)

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMapper)
Obsolete.

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(ISqlGenerationHelper)

Clones this dependency parameter object with one service replaced.

With(ISingletonUpdateSqlGenerator)

Clones this dependency parameter object with one service replaced.

With(IUpdateSqlGenerator)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As MigrationsSqlGeneratorDependencies

Parameters

logger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDiagnosticsLogger<DbLoggerCategory.Migrations>)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> migrationsLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (migrationsLogger As IDiagnosticsLogger(Of DbLoggerCategory.Migrations)) As MigrationsSqlGeneratorDependencies

Parameters

migrationsLogger
IDiagnosticsLogger<DbLoggerCategory.Migrations>

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ILoggingOptions)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (loggingOptions As ILoggingOptions) As MigrationsSqlGeneratorDependencies

Parameters

loggingOptions
ILoggingOptions

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

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

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (commandBuilderFactory As IRelationalCommandBuilderFactory) As MigrationsSqlGeneratorDependencies

Parameters

commandBuilderFactory
IRelationalCommandBuilderFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IRelationalTypeMapper)

Caution

Use IRelationalTypeMappingSource.

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
[System.Obsolete("Use IRelationalTypeMappingSource.")]
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
[<System.Obsolete("Use IRelationalTypeMappingSource.")>]
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (typeMapper As IRelationalTypeMapper) As MigrationsSqlGeneratorDependencies

Parameters

typeMapper
IRelationalTypeMapper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (typeMappingSource As IRelationalTypeMappingSource) As MigrationsSqlGeneratorDependencies

Parameters

typeMappingSource
IRelationalTypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ISqlGenerationHelper)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
member this.With : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (sqlGenerationHelper As ISqlGenerationHelper) As MigrationsSqlGeneratorDependencies

Parameters

sqlGenerationHelper
ISqlGenerationHelper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ISingletonUpdateSqlGenerator)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator updateSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (updateSqlGenerator As ISingletonUpdateSqlGenerator) As MigrationsSqlGeneratorDependencies

Parameters

updateSqlGenerator
Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IUpdateSqlGenerator)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator updateSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (updateSqlGenerator As IUpdateSqlGenerator) As MigrationsSqlGeneratorDependencies

Parameters

updateSqlGenerator
IUpdateSqlGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to