예제 #1
0
        public NewspostCollection FetchByQuery(Query qry)
        {
            NewspostCollection coll = new NewspostCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
예제 #2
0
        public NewspostCollection FetchAll()
        {
            NewspostCollection coll = new NewspostCollection();
            Query qry = new Query(Newspost.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
예제 #3
0
        public NewspostCollection FetchAllNotDeleted()
        {
            NewspostCollection coll = new NewspostCollection();
            Query qry = new Query(Newspost.Schema).WHERE(Newspost.Columns.Deleted, false);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
예제 #4
0
        public NewspostCollection FetchByID(object Id)
        {
            NewspostCollection coll = new NewspostCollection().Where("id", Id).Load();

            return(coll);
        }