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

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

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