예제 #1
0
        public virtual bool UpdateSecTodolistDomain(SecTodolistDomain domain)
        {
            using (DataAccessBroker broker = DataAccessFactory.Instance())
            {
                broker.BeginTransaction();
                try
                {
                    // 具体业务逻辑

                    broker.Commit();
                    return true;
                }
                catch
                {
                    broker.RollBack();
                    return false;
                }
            }
        }
예제 #2
0
        public virtual bool InsertSecTodolistDomain(SecTodolistDomain domain)
        {
            using (DataAccessBroker broker = DataAccessFactory.Instance())
            {
                broker.BeginTransaction();
                try
                {
                    // 具体业务逻辑
                    InsertSecTodolistEntity(domain.masterEntity, broker);

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