Пример #1
0
        public NhanVienCollection FetchByQuery(Query qry)
        {
            NhanVienCollection coll = new NhanVienCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #2
0
        public NhanVienCollection FetchAll()
        {
            NhanVienCollection coll = new NhanVienCollection();
            Query qry = new Query(NhanVien.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }