protected override List <Category> GetData()
        {
            CategoryFinder finder = new CategoryFinder();

            finder.SortExpressions.Add(new AscendingSort(Category.Columns.Name));
            return(Category.FindMany(finder));
        }
Example #2
0
 public virtual EntityList <Category> FindMany(CategoryFinder finder, int Page, int PageSize)
 {
     return((EntityList <Category>)(base.FindMany(finder, Page, PageSize)));
 }
Example #3
0
 public virtual EntityList <Category> FindMany(CategoryFinder finder)
 {
     return((EntityList <Category>)(base.FindMany(finder)));
 }
Example #4
0
        public virtual Category FindOne(CategoryFinder finder)
        {
            IEntity entity = base.FindOne(finder);

            return((entity == null) ? Category.Empty : entity as Category);
        }
Example #5
0
 public static int GetCount(CategoryFinder finder)
 {
     return(CategoryMapper.Instance.GetCount(finder));
 }
Example #6
0
        public static Category FindOne(CategoryFinder finder)
        {
            Category Category = CategoryMapper.Instance.FindOne(finder);

            return(Category ?? Empty);
        }
Example #7
0
 public static EntityList <Category> FindMany(CategoryFinder finder)
 {
     return(CategoryMapper.Instance.FindMany(finder));
 }
Example #8
0
 public static EntityList <Category> FindMany(CategoryFinder finder, int Page, int PageSize)
 {
     return(CategoryMapper.Instance.FindMany(finder, Page, PageSize));
 }