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

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

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