Пример #1
0
 public static void Save(tb_TraderateResultEntity obj)
 {
     if (obj!=null)
     {
         obj.Save();
     }
 }
Пример #2
0
 public void ResultWrite(tb_TraderateResultEntity tce)
 {
     Transaction t = new Transaction();
     t.AddSaveObject(tce);
     try
     {
         t.Process();
     }
     catch (PlException plex)
     { }
 }
Пример #3
0
 /// <summary>根据主键获取一个实体</summary>
 public static tb_TraderateResultEntity RetrieveAtb_TraderateResultEntity(int id)
 {
     tb_TraderateResultEntity obj=new tb_TraderateResultEntity();
     obj.id=id;
     obj.Retrieve();
     if (obj.IsPersistent)
     {
         return obj;
     }
     else
     {
         return null;
     }
 }