ExecutionStrategyDependencies.With Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
With(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>) |
Clones this dependency parameter object with one service replaced. |
With(ICurrentDbContext) |
Clones this dependency parameter object with one service replaced. |
With(IDbContextOptions) |
Clones this dependency parameter object with one service replaced. |
With(ICurrentDbContext) |
Clones this dependency parameter object with one service replaced. |
With(IDiagnosticsLogger<DbLoggerCategory.Infrastructure>)
Clones this dependency parameter object with one service replaced.
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
Parameters
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(ICurrentDbContext)
Clones this dependency parameter object with one service replaced.
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
Parameters
- currentContext
- ICurrentDbContext
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IDbContextOptions)
Clones this dependency parameter object with one service replaced.
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
Parameters
- options
- IDbContextOptions
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(ICurrentDbContext)
Clones this dependency parameter object with one service replaced.
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
Parameters
- currentDbContext
- Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
Entity Framework