示例#1
0
        public DDNewsCollection FetchByQuery(Query qry)
        {
            DDNewsCollection coll = new DDNewsCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
示例#2
0
        public DDNewsCollection FetchAll()
        {
            DDNewsCollection coll = new DDNewsCollection();
            Query            qry  = new Query(DDNews.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
示例#3
0
        public DDNewsCollection FetchByID(object NewsID)
        {
            DDNewsCollection coll = new DDNewsCollection().Where("NewsID", NewsID).Load();

            return(coll);
        }