public DDNewsCollection FetchByQuery(Query qry) { DDNewsCollection coll = new DDNewsCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public DDNewsCollection FetchAll() { DDNewsCollection coll = new DDNewsCollection(); Query qry = new Query(DDNews.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public DDNewsCollection FetchByID(object NewsID) { DDNewsCollection coll = new DDNewsCollection().Where("NewsID", NewsID).Load(); return(coll); }