ExecutionStrategyDependencies.With 方法

定义

重载

With(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>)

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

With(ICurrentDbContext)

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

With(IDbContextOptions)

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

With(ICurrentDbContext)

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

With(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>)

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

public Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> -> Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure)) As ExecutionStrategyDependencies

参数

logger
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

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

返回

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

适用于

With(ICurrentDbContext)

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

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

参数

currentContext
ICurrentDbContext

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

返回

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

适用于

With(IDbContextOptions)

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

public Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions options);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies
Public Function With (options As IDbContextOptions) As ExecutionStrategyDependencies

参数

options
IDbContextOptions

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

返回

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

适用于

With(ICurrentDbContext)

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

public Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies With (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext);
member this.With : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies
Public Function With (currentDbContext As ICurrentDbContext) As ExecutionStrategyDependencies

参数

currentDbContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext

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

返回

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

适用于