Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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;
 }