public CountryCollection FetchByQuery(Query qry) { CountryCollection coll = new CountryCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public CountryCollection FetchAll() { CountryCollection coll = new CountryCollection(); Query qry = new Query(Country.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public CountryCollection FetchByID(object CountryId) { CountryCollection coll = new CountryCollection().Where("CountryId", CountryId).Load(); return(coll); }