Ejemplo n.º 1
0
        public virtual bool UpdateMatchhistoryDomain(MatchhistoryDomain domain)
        {
            using (DataAccessBroker broker = DataAccessFactory.Instance())
            {
                broker.BeginTransaction();
                try
                {
                    // 具体业务逻辑

                    broker.Commit();
                    return true;
                }
                catch
                {
                    broker.RollBack();
                    return false;
                }
            }
        }
Ejemplo n.º 2
0
        public virtual bool InsertMatchhistoryDomain(MatchhistoryDomain domain)
        {
            using (DataAccessBroker broker = DataAccessFactory.Instance())
            {
                broker.BeginTransaction();
                try
                {
                    // 具体业务逻辑
                    InsertMatchhistoryEntity(domain.masterEntity, broker);

                    broker.Commit();
                    return true;
                }
                catch
                {
                    broker.RollBack();
                    return false;
                }
            }
        }