共用方式為


ExecutionStrategyResolver<T>(String, String, Func<T>) 建構函式

定義

初始化 ExecutionStrategyResolver<T> 的新執行個體

public ExecutionStrategyResolver (string providerInvariantName, string serverName, Func<T> getExecutionStrategy);
new System.Data.Entity.Infrastructure.DependencyResolution.ExecutionStrategyResolver<'T (requires 'T :> System.Data.Entity.Infrastructure.IDbExecutionStrategy)> : string * string * Func<'T (requires 'T :> System.Data.Entity.Infrastructure.IDbExecutionStrategy)> -> System.Data.Entity.Infrastructure.DependencyResolution.ExecutionStrategyResolver<'T (requires 'T :> System.Data.Entity.Infrastructure.IDbExecutionStrategy)>
Public Sub New (providerInvariantName As String, serverName As String, getExecutionStrategy As Func(Of T))

參數

providerInvariantName
String

ADO.NET 提供者不變數名稱,指出將使用這個執行策略的 ADO.NET 連線類型。

serverName
String

會比對連接字串中伺服器名稱的字串。 null 會比對任何專案。

getExecutionStrategy
Func<T>

傳回執行策略新實例的函式。

適用於