Esempio n. 1
0
        /// <summary>
        /// Returns a collection of alerts for the user
        /// </summary>
        /// <returns></returns>
        public UserAlertMessageViewCollection AlertMessages()
        {
            Query query = UserAlertMessageView.Query();

            query.WHERE(UserAlertMessageView.Columns.UserId, this.UserID);
            query.ORDER_BY(UserAlertMessageView.Columns.AlertOrder, "ASC");

            UserAlertMessageViewCollection alerts = new UserAlertMessageViewCollection();

            alerts.LoadAndCloseReader(query.ExecuteReader());

            return(alerts);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns a collection of alerts for the user
        /// </summary>
        /// <returns></returns>
        public UserAlertMessageViewCollection AlertMessages()
        {
            Query query = UserAlertMessageView.Query();
            query.WHERE(UserAlertMessageView.Columns.UserId, this.UserID);
            query.ORDER_BY(UserAlertMessageView.Columns.AlertOrder, "ASC");

            UserAlertMessageViewCollection alerts = new UserAlertMessageViewCollection();
            alerts.LoadAndCloseReader(query.ExecuteReader());

            return alerts;
        }