Example #1
0
        public TblVaiTroCollection FetchByQuery(Query qry)
        {
            TblVaiTroCollection coll = new TblVaiTroCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Example #2
0
        public TblVaiTroCollection FetchAll()
        {
            TblVaiTroCollection coll = new TblVaiTroCollection();
            Query qry = new Query(TblVaiTro.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Example #3
0
        public TblVaiTroCollection FetchByID(object Id)
        {
            TblVaiTroCollection coll = new TblVaiTroCollection().Where("Id", Id).Load();

            return(coll);
        }