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