public object ExecuteScalar() { var reqResult = LoggingDB.LogRequest(this, LoggingDBType.CmdScalar); var cmdDto = reqResult.Object as SqlCommandDTO; var cmdResult = Cmd.ExecuteScalar(); LoggingDB.LogResponse(cmdDto, cmdResult); return(cmdResult); }
public async Task <int> ExecuteNonQueryAsync() { var reqResult = LoggingDB.LogRequest(this, LoggingDBType.CmdNonQuery); var cmdDto = reqResult.Object as SqlCommandDTO; var cmdResult = await Cmd.ExecuteNonQueryAsync(); LoggingDB.LogResponse(cmdDto, cmdResult); return(cmdResult); }
public int ExecuteNonQuery() { var reqResult = LoggingDB.LogRequest(this, LoggingDBType.CmdNonQuery); var cmdDto = reqResult.Object as SqlCommandDTO; var cmdResult = Cmd.ExecuteNonQuery(); LoggingDB.LogResponse(cmdDto, cmdResult); return(cmdResult); }
private void DoLogging() { LoggingDB.LogResponse(CommandDTO, CurrentReaderResultDTO); CurrentReaderResultDTO = null; }