共用方式為


RelationalQueryContextDependencies.With 方法

定義

多載

With(IRelationalQueryStringFactory)

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

With(IExecutionStrategyFactory)

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

With(IRelationalConnection)

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

With(IRelationalQueryStringFactory)

來源:
RelationalQueryContextDependencies.cs

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

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

參數

relationalQueryStringFactory
IRelationalQueryStringFactory

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

傳回

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

適用於

With(IExecutionStrategyFactory)

來源:
RelationalQueryContextDependencies.cs
來源:
RelationalQueryContextDependencies.cs

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

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

參數

executionStrategyFactory
IExecutionStrategyFactory

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

傳回

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

適用於

With(IRelationalConnection)

來源:
RelationalQueryContextDependencies.cs
來源:
RelationalQueryContextDependencies.cs
來源:
RelationalQueryContextDependencies.cs

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

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

參數

relationalConnection
IRelationalConnection

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

傳回

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

適用於