C# Class Adventure.Works.LiveDemo.TSQLSyntaxLogger

Inheritance: IDbCommandInterceptor
Show file Open project: TelerikAcademy/Databases

Public Methods

Method Description
NonQueryExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
NonQueryExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
ReaderExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
ReaderExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
ScalarExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
ScalarExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void

Private Methods

Method Description
Log ( string line ) : void
LogExecutionDatetime ( ) : void
LogSeparatorLine ( ) : void
LogTSQL ( string command, string commandText ) : void
OnHandlerCalled ( ) : void

Method Details

NonQueryExecuted() public method

public NonQueryExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
return void

NonQueryExecuting() public method

public NonQueryExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
return void

ReaderExecuted() public method

public ReaderExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
return void

ReaderExecuting() public method

public ReaderExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
return void

ScalarExecuted() public method

public ScalarExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
return void

ScalarExecuting() public method

public ScalarExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
return void