Пример #1
0
        public static CommentCollection GetUserComments(int userID, int hostID, int pageNumber, int pageSize)
        {
            CommentCollection comments = new CommentCollection();

            comments.Load(SPs.Kick_GetPagedCommentsByUserIDAndHostID(userID, hostID, pageNumber, pageSize).GetReader());
            return(comments);
        }
Пример #2
0
        public CommentCollection FetchByQuery(Query qry)
        {
            CommentCollection coll = new CommentCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #3
0
        public CommentCollection FetchAll()
        {
            CommentCollection coll = new CommentCollection();
            Query             qry  = new Query(Comment.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #4
0
        public CommentCollection FetchByID(object CommentID)
        {
            CommentCollection coll = new CommentCollection().Where("CommentID", CommentID).Load();

            return(coll);
        }