nettier deepload

        TList<SkCategory> r = Laptop.Comm.Provider.CategoryProvider.GetPrimaryCategory();
        SkCategory sk1=r[0];
        DataRepository.SkCategoryProvider.DeepLoad(r, true, DeepLoadType.IncludeChildren,typeof(SkCategory), typeof(TList<SkCategory>));
        for (int i = 0; i < sk1.SkCategoryCollection.Count; i++)
        {
            Response.Write(sk1.SkCategoryCollection[i].CatName + "<br />");
            Response.Write(sk1.SkCategoryCollection[i].SkCategoryCollection[0].CatName + "<br />");
        }
posted @ 2009-10-29 14:54  zyip  阅读(184)  评论(1编辑  收藏  举报