public CurrencyCollection FetchByQuery(Query qry) { CurrencyCollection coll = new CurrencyCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public CurrencyCollection FetchAll() { CurrencyCollection coll = new CurrencyCollection(); Query qry = new Query(Currency.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public static AVManager.DAL.CurrencyCollection GetCurrencyCollection(string varCountryRegionCode) { SubSonic.QueryCommand cmd = new SubSonic.QueryCommand( "SELECT * FROM Currency INNER JOIN CountryRegionCurrency ON " + "Currency.CurrencyCode=CountryRegionCurrency.CurrencyCode WHERE CountryRegionCurrency.CountryRegionCode=@CountryRegionCode", CountryRegion.Schema.Provider.Name); cmd.AddParameter("@CountryRegionCode", varCountryRegionCode, DbType.String); IDataReader rdr = SubSonic.DataService.GetReader(cmd); CurrencyCollection coll = new CurrencyCollection(); coll.LoadAndCloseReader(rdr); return(coll); }