ExecutionStrategyResolver<T>(String, String, Func<T>) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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>
傳回執行策略新實例的函式。