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