DbTransactionInterceptor.RollingBackToSavepointAsync(DbTransaction, TransactionEventData, InterceptionResult, CancellationToken) Yöntem

Tanım

EF bir işlem kaydetme noktası geri almak için hemen önce çağrılır.

public virtual System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult> RollingBackToSavepointAsync (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result, System.Threading.CancellationToken cancellationToken = default);
abstract member RollingBackToSavepointAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult>
override this.RollingBackToSavepointAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult>
Public Overridable Function RollingBackToSavepointAsync (transaction As DbTransaction, eventData As TransactionEventData, result As InterceptionResult, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of InterceptionResult)

Parametreler

transaction
DbTransaction

İşlem.

eventData
TransactionEventData

Bağlantı ve işlem hakkında bağlamsal bilgiler.

result
InterceptionResult

Varsa geçerli sonucu temsil eder. Bu değer, önceki IsSuppressed bir kesme true noktası çağrılarak yürütmeyi bastırmışsa olarak Suppress() ayarlanmıştır. Bu değer genellikle bu yöntemin uygulanması için dönüş değeri olarak kullanılır.

cancellationToken
CancellationToken

Görevin CancellationToken tamamlandıktan sonra gözlemlemek için bir.

Döndürülenler

ValueTask<InterceptionResult>

false ise EF normal IsSuppressed şekilde devam eder. true IsSuppressed ise EF, gerçekleştirmek üzere olduğu işlemi bastıracak. Bu yöntemin işlemi gizlemeye çalışan herhangi bir kesme noktası için normal bir uygulaması, geçirilen result değerin geri dönmesidir.

Uygulamalar

Şunlara uygulanır