Beispiel #1
0
        public CreditCardCollection FetchByQuery(Query qry)
        {
            CreditCardCollection coll = new CreditCardCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Beispiel #2
0
        public CreditCardCollection FetchAll()
        {
            CreditCardCollection coll = new CreditCardCollection();
            Query qry = new Query(CreditCard.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Beispiel #3
0
        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);
        }