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)); }
public virtual EntityList <Country> FindMany(CountryFinder finder, int Page, int PageSize) { return((EntityList <Country>)(base.FindMany(finder, Page, PageSize))); }
public virtual EntityList <Country> FindMany(CountryFinder finder) { return((EntityList <Country>)(base.FindMany(finder))); }
public virtual Country FindOne(CountryFinder finder) { IEntity entity = base.FindOne(finder); return((entity == null) ? Country.Empty : entity as Country); }
public static int GetCount(CountryFinder finder) { return(CountryMapper.Instance.GetCount(finder)); }
public static Country FindOne(CountryFinder finder) { Country Country = CountryMapper.Instance.FindOne(finder); return(Country ?? Empty); }
public static EntityList <Country> FindMany(CountryFinder finder) { return(CountryMapper.Instance.FindMany(finder)); }
public static EntityList <Country> FindMany(CountryFinder finder, int Page, int PageSize) { return(CountryMapper.Instance.FindMany(finder, Page, PageSize)); }