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