IRelationalTransactionFactory 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個用來建立 RelationalTransaction 實例的工廠。
此類型通常由資料庫提供者使用,通常不用於應用程式碼中。
public interface IRelationalTransactionFactory
type IRelationalTransactionFactory = interface
Public Interface IRelationalTransactionFactory
- 衍生
備註
服役期間為 Singleton。 這表示單一實例會被多個 DbContext 實例使用。 實作必須是執行緒安全的。 此服務無法依賴於註冊為 Scoped的服務。
更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。