ExecutionStrategyDependencies.With 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。
适用于
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
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。