Sdílet prostřednictvím


IDbTransactionInterceptor.ReleasingSavepoint Metoda

Definice

Volá se těsně před tím, než EF hodlá vydat savepoint transakce.

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

Parametry

transaction
DbTransaction

Transakce.

eventData
TransactionEventData

Kontextové informace o připojení a transakci.

result
InterceptionResult

Představuje aktuální výsledek, pokud existuje. Tato hodnota bude nastavena IsSuppressed na true , pokud některý předchozí zachytávací modul potlačil spuštění voláním Suppress(). Tato hodnota se obvykle používá jako návratová hodnota pro implementaci této metody.

Návraty

Pokud IsSuppressed je false, ef bude pokračovat jako obvykle. Pokud IsSuppressed je true, ef potlačí operaci, kterou se chystá provést. Implementace této metody pro jakýkoli zasahovač, který se nepokouší potlačit operaci, je vrátit result hodnotu předanou v.

Platí pro