/// <summary> /// 根据删除条件、删除参数删除数据 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="whereSql"></param> /// <param name="whereObjParams"></param> /// <returns></returns> public virtual int Delete <T>(string whereSql, object whereObjParams) { int result = 0; var dbEntity = DbBuilder.DeleteByParam <T>(whereSql, whereObjParams); if (dbEntity == null) { return(result); } result = DbHelper.ExecuteNonQuery(dbEntity.CommandText, dbEntity.DbParams); return(result); }