Adventure.Works.LiveDemo.TSQLSyntaxLogger.ReaderExecuting C# (CSharp) Метод

ReaderExecuting() публичный Метод

public ReaderExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
Результат void
        public void ReaderExecuting(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext)
        {
            this.OnHandlerCalled();
            this.LogTSQL("ReaderExecuting", $" IsAsync: {interceptionContext.IsAsync} / Command Text: {Environment.NewLine}{command.CommandText}");
        }