Example #1
0
 public void MsgEnQ(tb_MessageQueueEntity mqe)
 {
     Transaction t = new Transaction();
     t.AddSaveObject(mqe);
     try
     {
         t.Process();
     }
     catch(PlException plex)
     {
         //错误日志plex.Message;
     }
 }
Example #2
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)
     {
     }
 }
Example #3
0
 public static void Save(tb_MessageQueueEntity obj)
 {
     if (obj!=null)
     {
         obj.Save();
     }
 }
Example #4
0
 /// <summary>根据主键获取一个实体</summary>
 public static tb_MessageQueueEntity RetrieveAtb_MessageQueueEntity(int id)
 {
     tb_MessageQueueEntity obj=new tb_MessageQueueEntity();
     obj.id=id;
     obj.Retrieve();
     if (obj.IsPersistent)
     {
         return obj;
     }
     else
     {
         return null;
     }
 }