Ejemplo n.º 1
0
 public object ExecuteScalar()
 {
     try
     {
         prepareCommand(_innerCommand);
         return(_session.ExecuteScalar(_innerCommand));
     }
     catch (CommandFailureException ex)
     {
         ex.CommandName = Name;
         throw;
     }
     catch (Exception ex)
     {
         throw new CommandFailureException(Name, _innerCommand, ex);
     }
 }