Exemple #1
0
        public static DataTable GetTable()
        {
            Type       t  = null;
            ProdcuctDB db = new ProdcuctDB();

            return((DataTable)(db.RetrieveAll(t)));
        }
Exemple #2
0
        protected override void SetUp()
        {
            mProps    = new ProductProps();
            mOldProps = new ProductProps();

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

            else
            {
                mdbReadable  = new ProdcuctDB(this.mConnectionString);
                mdbWriteable = new ProdcuctDB(this.mConnectionString);
            }
        }
Exemple #3
0
        public static void Delete(Product id, string cnString)
        {
            ProdcuctDB db = new ProdcuctDB(cnString);

            db.Delete((IBaseProps)id);
        }
Exemple #4
0
        /// <summary>
        /// Deletes the customer identified by the id.
        /// </summary>
        public static void Delete(Product id)
        {
            ProdcuctDB db = new ProdcuctDB();

            db.Delete((IBaseProps)id);
        }