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

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

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

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