示例#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));
 }