Exemple #1
0
        /// <summary>
        /// 带事务更新
        /// </summary>
        /// <param name="delta"></param>
        /// <param name="db"></param>
        /// <param name="transaction"></param>
        public void PersistChangeWithTransaction(QH_HoldAccountTableInfo_Delta delta, Database db, DbTransaction transaction)
        {
            QH_HoldAccountTableDal dal = new QH_HoldAccountTableDal();
            ReckoningTransaction   tm  = new ReckoningTransaction();

            tm.Database    = db;
            tm.Transaction = transaction;

            dal.AddUpdate(delta, tm);
        }
Exemple #2
0
        /// <summary>
        /// 持久化变化量
        /// </summary>
        /// <param name="delta"></param>
        public void PersistChange(QH_HoldAccountTableInfo_Delta delta)
        {
            QH_HoldAccountTableDal dal = new QH_HoldAccountTableDal();

            dal.AddUpdate(delta);
        }