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 传入的值。

适用于