simple grouping.

This commit is contained in:
David Lebée
2018-03-08 21:59:18 -06:00
parent 17dcbb492f
commit 64d60b6942
5 changed files with 95 additions and 23 deletions
@@ -69,5 +69,18 @@ namespace PoweredSoft.DynamicLinq
var ret = qb.Build();
return ret;
}
public static IQueryable GroupBy<T>(this IQueryable<T> query, string path)
where T : class
{
var ret = query.GroupBy(typeof(T), path);
return ret as IQueryable;
}
public static IQueryable GroupBy(this IQueryable query, Type type, string path)
{
var ret = QueryableHelpers.GroupBy(query, type, path);
return ret;
}
}
}