public CreditCardCollection FetchByQuery(Query qry) { CreditCardCollection coll = new CreditCardCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public CreditCardCollection FetchAll() { CreditCardCollection coll = new CreditCardCollection(); Query qry = new Query(CreditCard.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public static AVManager.DAL.CreditCardCollection GetCreditCardCollection(int varContactID) { SubSonic.QueryCommand cmd = new SubSonic.QueryCommand( "SELECT * FROM CreditCard INNER JOIN ContactCreditCard ON " + "CreditCard.CreditCardID=ContactCreditCard.CreditCardID WHERE ContactCreditCard.ContactID=@ContactID", Contact.Schema.Provider.Name); cmd.AddParameter("@ContactID", varContactID, DbType.Int32); IDataReader rdr = SubSonic.DataService.GetReader(cmd); CreditCardCollection coll = new CreditCardCollection(); coll.LoadAndCloseReader(rdr); return(coll); }