示例#1
0
 public CategoriesEditRepeater()
 {
     repository = new GeneralRepository <DAL.Sql.Modles.Category>();
     manager    = new CategoryManager(repository);
     list       = repository.All().ToList();
     //foreach (var item in list)
     //{
     //    if (item.ParentID != null)
     //    item.ParentName = repository.Single(item.ParentID).Name;
     //}
 }