Ejemplo n.º 1
0
 public bool InsertUpdate(M_RoomNotify model)
 {
     if (model.ID > 0)
     {
         GetUpdate(model);
     }
     else
     {
         GetInsert(model);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public bool GetUpdate(M_RoomNotify model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Ejemplo n.º 3
0
 public bool GetInsert(M_RoomNotify model)
 {
     return(DBCenter.Insert(model) > 0);
 }
Ejemplo n.º 4
0
 public int insert(M_RoomNotify model)
 {
     return(DBCenter.Insert(model));
 }
Ejemplo n.º 5
0
 public bool GetUpdate(M_RoomNotify model)
 {
     return(Sql.UpdateByIDs(TbName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters(model)));
 }
Ejemplo n.º 6
0
 public bool GetInsert(M_RoomNotify model)
 {
     return(Sql.insertID(TbName, model.GetParameters(model), BLLCommon.GetParas(model), BLLCommon.GetFields(model)) > 0);
 }