Sprache

IDbTransactionInterceptor.CreatingSavepoint Methode

Definition

Wird kurz vor dem Erstellen eines Transaktionsspeicherpunkts von EF aufgerufen.

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

Parameter

transaction
DbTransaction

Die Transaktion.

eventData
TransactionEventData

Kontextbezogene Informationen zu Verbindung und Transaktion.

result
InterceptionResult

Stellt das aktuelle Ergebnis dar, falls vorhanden. Dieser Wert muss festgelegt true werdenIsSuppressed, wenn ein früherer Interceptor die Ausführung durch Aufrufen Suppress()unterdrückt hat. Dieser Wert wird in der Regel als Rückgabewert für die Implementierung dieser Methode verwendet.

Gibt zurück

Wenn IsSuppressed ja false, wird EF normal fortgesetzt. Wenn IsSuppressed ja true, unterdrückt EF den Vorgang, den er auszuführen hatte. Eine Implementierung dieser Methode für jeden Interceptor, der nicht versucht, den Vorgang zu unterdrücken, besteht darin, den result übergebenen Wert zurückzugeben.

Gilt für: