RelationalQueryContextDependencies.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(IRelationalQueryStringFactory) |
Clones this dependency parameter object with one service replaced. |
With(IExecutionStrategyFactory) |
Clones this dependency parameter object with one service replaced. |
With(IRelationalConnection) |
Clones this dependency parameter object with one service replaced. |
With(IRelationalQueryStringFactory)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies With (Microsoft.EntityFrameworkCore.Query.IRelationalQueryStringFactory relationalQueryStringFactory);
member this.With : Microsoft.EntityFrameworkCore.Query.IRelationalQueryStringFactory -> Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies
Public Function With (relationalQueryStringFactory As IRelationalQueryStringFactory) As RelationalQueryContextDependencies
Parameters
- relationalQueryStringFactory
- IRelationalQueryStringFactory
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IExecutionStrategyFactory)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies With (Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies
Public Function With (executionStrategyFactory As IExecutionStrategyFactory) As RelationalQueryContextDependencies
Parameters
- executionStrategyFactory
- IExecutionStrategyFactory
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IRelationalConnection)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection relationalConnection);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies
Public Function With (relationalConnection As IRelationalConnection) As RelationalQueryContextDependencies
Parameters
- relationalConnection
- IRelationalConnection
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
Entity Framework