共用方式為


ExecutionStrategyDependencies.With 方法

定義

多載

With(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>)

複製此相依性參數物件,並取代一個服務。

With(ICurrentDbContext)

複製此相依性參數物件,並取代一個服務。

With(IDbContextOptions)

複製此相依性參數物件,並取代一個服務。

With(ICurrentDbContext)

複製此相依性參數物件,並取代一個服務。

With(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>)

來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs

複製此相依性參數物件,並取代一個服務。

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)

來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs

複製此相依性參數物件,並取代一個服務。

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)

來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs

複製此相依性參數物件,並取代一個服務。

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)

來源:
ExecutionStrategyDependencies.cs
來源:
ExecutionStrategyDependencies.cs

複製此相依性參數物件,並取代一個服務。

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

取代此類型的目前相依性。

傳回

取代指定服務的新參數物件。

適用於