public object ExecuteScalar(IDbCommand command) { try { return(_currentState.ExecuteScalar(command)); } catch (Exception ex) { throw new CommandFailureException(command, ex); } }