public static LimitList <T> ListLimit <T>(this IQueryable <T> source, LimitQueryInfo queryInfo) where T : class, new() { _ = queryInfo ?? throw new ArgumentNullException(nameof(queryInfo)); return(source.ListLimit( FilterInfo.Parse(queryInfo?.Filter), OrderInfo.Parse(queryInfo?.OrderBy), SelectInfo.Parse(queryInfo?.Select), queryInfo)); }
public static LimitList <TTarget> ListLimit <TSource, TTarget>(this IQueryable <TSource> source, LimitQueryInfo queryInfo, ObjectMapper <TSource, TTarget> mapper) where TSource : class where TTarget : class, new() { return(source.ListLimit( FilterInfo.Parse(queryInfo?.Filter), OrderInfo.Parse(queryInfo?.OrderBy), SelectInfo.Parse(queryInfo?.Select), queryInfo, mapper)); }