Udostępnij przez


IDbCommandInterceptor.ScalarExecuted Metoda

Definicja

Ta metoda jest wywoływana po wywołaniu metody ExecuteScalar() lub jednej z jego odpowiedników asynchronicznych. Wynik używany przez program Entity Framework można zmienić, ustawiając wartość Result.

public void ScalarExecuted(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<object> interceptionContext);
abstract member ScalarExecuted : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
Public Sub ScalarExecuted (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Object))

Parametry

command
DbCommand

Wykonywane polecenie.

interceptionContext
DbCommandInterceptionContext<Object>

Informacje kontekstowe skojarzone z wywołaniem.

Uwagi

W przypadku operacji asynchronicznych ta metoda nie jest wywoływana do momentu ukończenia lub niepowodzenia zadania asynchronicznego.

Dotyczy