Share via


RelationalDatabaseCreatorDependencies.With Method

Definition

Overloads

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IModel)

Clones this dependency parameter object with one service replaced.

With(IMigrationCommandExecutor)

Clones this dependency parameter object with one service replaced.

With(IMigrationsModelDiffer)

Clones this dependency parameter object with one service replaced.

With(IMigrationsSqlGenerator)

Clones this dependency parameter object with one service replaced.

With(IExecutionStrategyFactory)

Clones this dependency parameter object with one service replaced.

With(IRelationalConnection)

Clones this dependency parameter object with one service replaced.

With(ISqlGenerationHelper)

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.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As RelationalDatabaseCreatorDependencies

Parameters

commandLogger
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(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

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

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Metadata.IModel model);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (model As IModel) As RelationalDatabaseCreatorDependencies

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (migrationCommandExecutor As IMigrationCommandExecutor) As RelationalDatabaseCreatorDependencies

Parameters

migrationCommandExecutor
IMigrationCommandExecutor

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsModelDiffer)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (modelDiffer As IMigrationsModelDiffer) As RelationalDatabaseCreatorDependencies

Parameters

modelDiffer
IMigrationsModelDiffer

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMigrationsSqlGenerator)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (migrationsSqlGenerator As IMigrationsSqlGenerator) As RelationalDatabaseCreatorDependencies

Parameters

migrationsSqlGenerator
IMigrationsSqlGenerator

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IExecutionStrategyFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (executionStrategyFactory As IExecutionStrategyFactory) As RelationalDatabaseCreatorDependencies

Parameters

executionStrategyFactory
IExecutionStrategyFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IRelationalConnection)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (connection As IRelationalConnection) As RelationalDatabaseCreatorDependencies

Parameters

connection
IRelationalConnection

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.Storage.RelationalDatabaseCreatorDependencies With (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
member this.With : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Function With (sqlGenerationHelper As ISqlGenerationHelper) As RelationalDatabaseCreatorDependencies

Parameters

sqlGenerationHelper
ISqlGenerationHelper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to