Exemplo n.º 1
0
        public KhachHangCollection FetchByQuery(Query qry)
        {
            KhachHangCollection coll = new KhachHangCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Exemplo n.º 2
0
        public KhachHangCollection FetchAll()
        {
            KhachHangCollection coll = new KhachHangCollection();
            Query qry = new Query(KhachHang.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Exemplo n.º 3
0
        public KhachHangCollection FetchByID(object MaKh)
        {
            KhachHangCollection coll = new KhachHangCollection().Where("MaKh", MaKh).Load();

            return(coll);
        }