public NewspostCollection FetchByQuery(Query qry) { NewspostCollection coll = new NewspostCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public NewspostCollection FetchAll() { NewspostCollection coll = new NewspostCollection(); Query qry = new Query(Newspost.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public NewspostCollection FetchAllNotDeleted() { NewspostCollection coll = new NewspostCollection(); Query qry = new Query(Newspost.Schema).WHERE(Newspost.Columns.Deleted, false); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public NewspostCollection FetchByID(object Id) { NewspostCollection coll = new NewspostCollection().Where("id", Id).Load(); return(coll); }