Exemplo n.º 1
0
        public static DataTable GetTable()
        {
            Type       t  = null;
            CustomerDB db = new CustomerDB();

            return((DataTable)(db.RetrieveAll(t)));
        }
Exemplo n.º 2
0
        protected override void SetUp()
        {
            mProps    = new CustomerProp();
            mOldProps = new CustomerProp();

            if (this.mConnectionString == "")
            {
                mdbReadable  = new CustomerDB();
                mdbWriteable = new CustomerDB();
            }

            else
            {
                mdbReadable  = new CustomerDB(this.mConnectionString);
                mdbWriteable = new CustomerDB(this.mConnectionString);
            }
        }
Exemplo n.º 3
0
        public static void Delete(Customer id, string cnString)
        {
            CustomerDB db = new CustomerDB(cnString);

            db.Delete((IBaseProps)id);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Deletes the customer identified by the id.
        /// </summary>
        public static void Delete(Customer id)
        {
            CustomerDB db = new CustomerDB();

            db.Delete((IBaseProps)id);
        }