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

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

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

            db.Delete((IBaseProps)id);
        }