Exemple #1
0
        public NhanVienCollection FetchByQuery(Query qry)
        {
            NhanVienCollection coll = new NhanVienCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Exemple #2
0
        public NhanVienCollection FetchAll()
        {
            NhanVienCollection coll = new NhanVienCollection();
            Query qry = new Query(NhanVien.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Exemple #3
0
        public NhanVienCollection FetchByID(object MaNV)
        {
            NhanVienCollection coll = new NhanVienCollection().Where("MaNV", MaNV).Load();

            return(coll);
        }