/// <summary> /// 根据修改参数、where参数修改实体对应数据 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="updateParams"></param> /// <param name="whereSql"></param> /// <param name="whereObjParams"></param> /// <returns></returns> public virtual int Update <T>(object updateParams, string whereSql, object whereObjParams) { int result = 0; var dbEntity = DbBuilder.UpdateByParam <T>(updateParams, whereSql, whereObjParams); if (dbEntity == null) { return(result); } result = DbHelper.ExecuteNonQuery(dbEntity.CommandText, dbEntity.DbParams); return(result); }