Exemple #1
0
        public int UpdateFixture(BMS_DAL.DS.BMSDS.TFixturesDataTable dt)
        {
            int r = 0;

            if (dt.GetChanges() != null)
            {
                using (BMS_DAL.DS.BMSDSTableAdapters.TFixturesTableAdapter ta = new BMS_DAL.DS.BMSDSTableAdapters.TFixturesTableAdapter())
                {
                    r = ta.UpdateWithTrans(dt);
                }
            }
            return(r);
        }
Exemple #2
0
        public int UpdateWithTrans(BMS_DAL.DS.BMSDS.TFixturesDataTable dt)
        {
            int r = 0;

            using (System.Transactions.TransactionScope ts = new System.Transactions.TransactionScope())
            {
                try
                {
                    r = this.Adapter.Update(dt);
                    ts.Complete();
                }
                catch (Exception ex) { throw ex; }
            }
            return(r);
        }