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