Пример #1
0
        protected override List <Country> GetData()
        {
            CountryFinder finder = new CountryFinder();

            finder.SortExpressions.Add(new AscendingSort(Country.Columns.Rank));
            finder.SortExpressions.Add(new AscendingSort(Country.Columns.Name));
            return(Country.FindMany(finder));
        }
Пример #2
0
 public virtual EntityList <Country> FindMany(CountryFinder finder, int Page, int PageSize)
 {
     return((EntityList <Country>)(base.FindMany(finder, Page, PageSize)));
 }
Пример #3
0
 public virtual EntityList <Country> FindMany(CountryFinder finder)
 {
     return((EntityList <Country>)(base.FindMany(finder)));
 }
Пример #4
0
        public virtual Country FindOne(CountryFinder finder)
        {
            IEntity entity = base.FindOne(finder);

            return((entity == null) ? Country.Empty : entity as Country);
        }
Пример #5
0
 public static int GetCount(CountryFinder finder)
 {
     return(CountryMapper.Instance.GetCount(finder));
 }
Пример #6
0
        public static Country FindOne(CountryFinder finder)
        {
            Country Country = CountryMapper.Instance.FindOne(finder);

            return(Country ?? Empty);
        }
Пример #7
0
 public static EntityList <Country> FindMany(CountryFinder finder)
 {
     return(CountryMapper.Instance.FindMany(finder));
 }
Пример #8
0
 public static EntityList <Country> FindMany(CountryFinder finder, int Page, int PageSize)
 {
     return(CountryMapper.Instance.FindMany(finder, Page, PageSize));
 }