RelationalDatabaseDependencies.With 方法

定义

重载

With(IRelationalConnection)

克隆此依赖项参数对象,替换了一个服务。

With(IBatchExecutor)

克隆此依赖项参数对象,替换了一个服务。

With(ICommandBatchPreparer)

克隆此依赖项参数对象,替换了一个服务。

With(IRelationalConnection)

克隆此依赖项参数对象,替换了一个服务。

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

参数

connection
IRelationalConnection

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IBatchExecutor)

克隆此依赖项参数对象,替换了一个服务。

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

参数

batchExecutor
IBatchExecutor

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(ICommandBatchPreparer)

克隆此依赖项参数对象,替换了一个服务。

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

参数

batchPreparer
ICommandBatchPreparer

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于