C# Class Adventure.Works.LiveDemo.TSQLSyntaxLogger

Inheritance: IDbCommandInterceptor
Afficher le fichier Open project: TelerikAcademy/Databases

Méthodes publiques

Méthode 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

Méthode Description
Log ( string line ) : void
LogExecutionDatetime ( ) : void
LogSeparatorLine ( ) : void
LogTSQL ( string command, string commandText ) : void
OnHandlerCalled ( ) : void

Method Details

NonQueryExecuted() public méthode

public NonQueryExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
Résultat void

NonQueryExecuting() public méthode

public NonQueryExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
Résultat void

ReaderExecuted() public méthode

public ReaderExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
Résultat void

ReaderExecuting() public méthode

public ReaderExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
Résultat void

ScalarExecuted() public méthode

public ScalarExecuted ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
Résultat void

ScalarExecuting() public méthode

public ScalarExecuting ( DbCommand command, DbCommandInterceptionContext interceptionContext ) : void
command System.Data.Common.DbCommand
interceptionContext DbCommandInterceptionContext
Résultat void