共用方式為


IDbTransactionInterceptor.ReleasingSavepoint 方法

定義

在 EF 想要釋放交易儲存點之前呼叫。

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult ReleasingSavepoint (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result);
public virtual Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult ReleasingSavepoint (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result);
abstract member ReleasingSavepoint : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
abstract member ReleasingSavepoint : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
override this.ReleasingSavepoint : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
Public Function ReleasingSavepoint (transaction As DbTransaction, eventData As TransactionEventData, result As InterceptionResult) As InterceptionResult
Public Overridable Function ReleasingSavepoint (transaction As DbTransaction, eventData As TransactionEventData, result As InterceptionResult) As InterceptionResult

參數

transaction
DbTransaction

異動。

eventData
TransactionEventData

連線和交易的相關內容資訊。

result
InterceptionResult

如果存在,則表示目前的結果。 如果某些先前的攔截器藉由呼叫 Suppress() 來隱藏執行,這個值將會 IsSuppressed 設定為 true 。 這個值通常用來做為這個方法實作的傳回值。

傳回

如果 IsSuppressedfalse ,則 EF 會如常繼續。 如果 IsSuppressedtrue ,EF 將會隱藏即將執行的作業。 未嘗試隱藏作業之任何攔截器的這個方法實作是傳回 result 傳入的值。

適用於