public KnDanhsachKhachhangCollection FetchByQuery(Query qry)
        {
            KnDanhsachKhachhangCollection coll = new KnDanhsachKhachhangCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public KnDanhsachKhachhangCollection FetchAll()
        {
            KnDanhsachKhachhangCollection coll = new KnDanhsachKhachhangCollection();
            Query qry = new Query(KnDanhsachKhachhang.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public KnDanhsachKhachhangCollection FetchByID(object IdKhachhang)
        {
            KnDanhsachKhachhangCollection coll = new KnDanhsachKhachhangCollection().Where("id_khachhang", IdKhachhang).Load();

            return(coll);
        }