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
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。