Пример #1
0
        public CountryCollection FetchByQuery(Query qry)
        {
            CountryCollection coll = new CountryCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #2
0
        public CountryCollection FetchAll()
        {
            CountryCollection coll = new CountryCollection();
            Query             qry  = new Query(Country.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #3
0
        public CountryCollection FetchByID(object CountryId)
        {
            CountryCollection coll = new CountryCollection().Where("CountryId", CountryId).Load();

            return(coll);
        }