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); }
public CommentCollection FetchByQuery(Query qry) { CommentCollection coll = new CommentCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public CommentCollection FetchAll() { CommentCollection coll = new CommentCollection(); Query qry = new Query(Comment.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public CommentCollection FetchByID(object CommentID) { CommentCollection coll = new CommentCollection().Where("CommentID", CommentID).Load(); return(coll); }