Ejemplo n.º 1
0
 /// <summary>
 ///		在任务中增加一个DeleteCriteria任务
 /// </summary>
 /// <param name="delete">DeleteCriteria实例</param>
 public void AddDeleteCriteria(DeleteCriteria delete)
 {
     this.tasks.Add(delete);
     this.actions.Add(ActionTypes.PesistentCriteria);
     //Console.WriteLine("Transaction.AddDeleteCriteria构建中!");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 在事务中执行删除标准操作
 /// </summary>
 /// <param name="delete">删除标准</param>
 /// <param name="isForceCommit">
 /// 是否强制执行,默认为false
 /// true:强制执行,即就算遇到更新为零的操作,也不会抛出异常
 /// flase:非强制执行,如果遇到更新为零,则抛出异常PLException,类型为DirthEntity,表示存在并发错误
 /// </param>
 public void DoDeleteCriteria(DeleteCriteria delete, bool isForceCommit)
 {
     broker.DoTransaction(delete, ActionTypes.PesistentCriteria, rdbs, isForceCommit);
 }