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