예제 #1
0
 public void EndRelist(tb_MessageQueueEntity mqe,tb_RelistReslutEntity rre)
 {
     Transaction t = new Transaction();
     UpdateCriteria uc = new UpdateCriteria(typeof(tb_MessageQueueEntity));
     Condition c = uc.GetNewCondition();
     c.AddEqualTo(tb_MessageQueueEntity.__ID,mqe.id);
     uc.AddAttributeForUpdate(tb_MessageQueueEntity.__STATE,true);
     t.AddUpdateCriteria(uc);
     t.AddSaveObject(rre);
     try
     {
         t.Process();
     }
     catch (PlException plex)
     {
     }
 }