public LocationCollection FetchByQuery(Query qry)
        {
            LocationCollection coll = new LocationCollection();

            coll.Load(qry.ExecuteReader());
            return(coll);
        }
Пример #2
0
        public LocationCollection FetchByCity(string city)
        {
            LocationCollection coll = new LocationCollection().
                                      Where(Location.Columns.City, city).Load();

            return(coll);
        }
        public LocationCollection FetchAll()
        {
            LocationCollection coll = new LocationCollection();
            Query qry = new Query(Location.Schema);

            coll.Load(qry.ExecuteReader());
            return(coll);
        }
        public LocationCollection FetchByID(object ID)
        {
            LocationCollection coll = new LocationCollection().Where("ID", ID).Load();

            return(coll);
        }