IDbCommandInterceptor.CommandInitialized Methode

Definition

Wird aufgerufen, nachdem EF und andere Befehlskonfigurationen initialisiert CommandText hat.

public virtual System.Data.Common.DbCommand CommandInitialized (Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData eventData, System.Data.Common.DbCommand result);
abstract member CommandInitialized : Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData * System.Data.Common.DbCommand -> System.Data.Common.DbCommand
override this.CommandInitialized : Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData * System.Data.Common.DbCommand -> System.Data.Common.DbCommand
Public Overridable Function CommandInitialized (eventData As CommandEndEventData, result As DbCommand) As DbCommand

Parameter

eventData
CommandEndEventData

Kontextinformationen zum Befehl und zur Ausführung.

result
DbCommand

Der Befehl. Dieser Wert wird in der Regel als Rückgabewert für die Implementierung dieser Methode verwendet.

Gibt zurück

Das Ergebnis, das EF verwendet. Eine Implementierung dieser Methode für jeden Interceptor, der nicht versucht, das Ergebnis zu ändern, besteht darin, den result übergebenen Wert zurückzugeben.

Gilt für: