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

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

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

            return(coll);
        }