Beispiel #1
0
 public void DeQueue(int id)
 {
     tb_ScheduleRelistQueueEntity srqe = new tb_ScheduleRelistQueueEntity();
     srqe.id = id;
     try
     {
         srqe.Retrieve();
         if (srqe.IsPersistent)
         {
             srqe.state = true;
             srqe.Save();
         }
     }catch(PlException plex)
     {
         //获取失败了,主键有误
     }
 }
 /// <summary>根据主键获取一个实体</summary>
 public static tb_ScheduleRelistQueueEntity RetrieveAtb_ScheduleRelistQueueEntity(int id)
 {
     tb_ScheduleRelistQueueEntity obj=new tb_ScheduleRelistQueueEntity();
     obj.id=id;
     obj.Retrieve();
     if (obj.IsPersistent)
     {
         return obj;
     }
     else
     {
         return null;
     }
 }