Exemplo n.º 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));
        }
Exemplo n.º 2
0
 public virtual EntityList <Country> FindMany(CountryFinder finder, int Page, int PageSize)
 {
     return((EntityList <Country>)(base.FindMany(finder, Page, PageSize)));
 }
Exemplo n.º 3
0
 public virtual EntityList <Country> FindMany(CountryFinder finder)
 {
     return((EntityList <Country>)(base.FindMany(finder)));
 }
Exemplo n.º 4
0
        public virtual Country FindOne(CountryFinder finder)
        {
            IEntity entity = base.FindOne(finder);

            return((entity == null) ? Country.Empty : entity as Country);
        }
Exemplo n.º 5
0
 public static int GetCount(CountryFinder finder)
 {
     return(CountryMapper.Instance.GetCount(finder));
 }
Exemplo n.º 6
0
        public static Country FindOne(CountryFinder finder)
        {
            Country Country = CountryMapper.Instance.FindOne(finder);

            return(Country ?? Empty);
        }
Exemplo n.º 7
0
 public static EntityList <Country> FindMany(CountryFinder finder)
 {
     return(CountryMapper.Instance.FindMany(finder));
 }
Exemplo n.º 8
0
 public static EntityList <Country> FindMany(CountryFinder finder, int Page, int PageSize)
 {
     return(CountryMapper.Instance.FindMany(finder, Page, PageSize));
 }