Share via


RelationalDatabaseDependencies.With Method

Definition

Overloads

With(IRelationalConnection)

Clones this dependency parameter object with one service replaced.

With(IBatchExecutor)

Clones this dependency parameter object with one service replaced.

With(ICommandBatchPreparer)

Clones this dependency parameter object with one service replaced.

With(IRelationalConnection)

Clones this dependency parameter object with one service replaced.

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

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

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies With (Microsoft.EntityFrameworkCore.Update.IBatchExecutor batchExecutor);
member this.With : Microsoft.EntityFrameworkCore.Update.IBatchExecutor -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies
Public Function With (batchExecutor As IBatchExecutor) As RelationalDatabaseDependencies

Parameters

batchExecutor
IBatchExecutor

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICommandBatchPreparer)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies With (Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer batchPreparer);
member this.With : Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies
Public Function With (batchPreparer As ICommandBatchPreparer) As RelationalDatabaseDependencies

Parameters

batchPreparer
ICommandBatchPreparer

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to