Example #1
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="userPower"></param>
 /// <returns></returns>
 public UserPower Commit(UserPower userPower)
 {
     try
     {
         // 定义
         UserPower result = new UserPower();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(userPower);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="dictionary"></param>
 /// <returns></returns>
 public Dictionary Commit(Dictionary dictionary)
 {
     try
     {
         // 定义
         Dictionary result = new Dictionary();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(dictionary);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="site"></param>
 /// <returns></returns>
 public Site Commit(Site site)
 {
     try
     {
         // 定义
         Site result = new Site();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(site);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="venue"></param>
 /// <returns></returns>
 public Venue Commit(Venue venue)
 {
     try
     {
         // 定义
         Venue result = new Venue();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(venue);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #5
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="task"></param>
 /// <returns></returns>
 public Task Commit(Task task)
 {
     try
     {
         // 定义
         Task result = new Task();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(task);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #6
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="region"></param>
 /// <returns></returns>
 public Region Commit(Region region)
 {
     try
     {
         // 定义
         Region result = new Region();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(region);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #7
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="role"></param>
 /// <returns></returns>
 public Role Commit(Role role)
 {
     try
     {
         // 定义
         Role result = new Role();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(role);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #8
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="status"></param>
 /// <returns></returns>
 public Status Commit(Status status)
 {
     try
     {
         // 定义
         Status result = new Status();
         // 删除
         transService.TransRegist(delegate {
             result = base.Delete(status);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="reRoleRegistry"></param>
 /// <returns></returns>
 public RERoleRegistry Commit(RERoleRegistry reRoleRegistry)
 {
     try
     {
         // 定义
         RERoleRegistry result = new RERoleRegistry();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(reRoleRegistry);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #10
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="customer"></param>
 /// <returns></returns>
 public Customer Commit(Customer customer)
 {
     try
     {
         // 定义
         Customer result = new Customer();
         // 事务
         transService.TransRegist(delegate {
             result = base.Delete(customer);
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #11
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="registry"></param>
 /// <returns></returns>
 public Registry Commit(Registry registry)
 {
     try
     {
         // 定义
         Registry result = new Registry();
         // 事务
         transService.TransRegist(delegate {
             result = base.Create(
                 ReadyToCreate(registry)
                 );
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #12
0
 /// <summary>
 /// 默认的事务方法
 /// </summary>
 /// <param name="reRoleUser"></param>
 /// <returns></returns>
 public RERoleUser Commit(RERoleUser reRoleUser)
 {
     try
     {
         // 定义
         RERoleUser result = new RERoleUser();
         // 事务
         transService.TransRegist(delegate {
             result = base.Create(
                 ReadyToCreate(reRoleUser)
                 );
         });
         // 提交
         transService.TransCommit();
         // 返回
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }