예제 #1
0
파일: Product.cs 프로젝트: helo12/Lab6
        public static DataTable GetTable()
        {
            Type       t  = null;
            ProdcuctDB db = new ProdcuctDB();

            return((DataTable)(db.RetrieveAll(t)));
        }
예제 #2
0
파일: Product.cs 프로젝트: helo12/Lab6
        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);
            }
        }
예제 #3
0
파일: Product.cs 프로젝트: helo12/Lab6
        public static void Delete(Product id, string cnString)
        {
            ProdcuctDB db = new ProdcuctDB(cnString);

            db.Delete((IBaseProps)id);
        }
예제 #4
0
파일: Product.cs 프로젝트: helo12/Lab6
        /// <summary>
        /// Deletes the customer identified by the id.
        /// </summary>
        public static void Delete(Product id)
        {
            ProdcuctDB db = new ProdcuctDB();

            db.Delete((IBaseProps)id);
        }