Exemplo n.º 1
0
 public static void Save(tb_User_SwitchPropertyEntity obj)
 {
     if (obj!=null)
     {
         obj.Save();
     }
 }
Exemplo n.º 2
0
 /// <summary>根据主键获取一个实体</summary>
 public static tb_User_SwitchPropertyEntity RetrieveAtb_User_SwitchPropertyEntity(int user_id, int switchProerty_id)
 {
     tb_User_SwitchPropertyEntity obj=new tb_User_SwitchPropertyEntity();
     obj.user_id=user_id;
     obj.switchProerty_id=switchProerty_id;
     obj.Retrieve();
     if (obj.IsPersistent)
     {
         return obj;
     }
     else
     {
         return null;
     }
 }