select builder started.

This commit is contained in:
David Lebée
2018-03-12 22:01:41 -05:00
parent 23d1161667
commit 436bd5ab98
3 changed files with 26 additions and 2 deletions
@@ -1,5 +1,6 @@
using PoweredSoft.DynamicLinq.Fluent;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -33,5 +34,17 @@ namespace PoweredSoft.DynamicLinq
public static IEnumerable<T> ThenByDescending<T>(this IEnumerable<T> list, string path)
=> list.AsQueryable().ThenByDescending(path);
public static IQueryable GroupBy<T>(this IEnumerable<T> list, string path)
=> list.AsQueryable().GroupBy(typeof(T), path);
public static IQueryable GroupBy(this IEnumerable list, Type type, string path)
=> list.AsQueryable().GroupBy(type, path);
public static IQueryable GroupBy<T>(this IEnumerable<T> list, Action<GroupBuilder> callback)
=> list.AsQueryable().GroupBy(typeof(T), callback);
public static IQueryable GroupBy(this IEnumerable list, Type type, Action<GroupBuilder> callback)
=> list.AsQueryable().GroupBy(type, callback);
}
}
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PoweredSoft.DynamicLinq.Fluent
{
public class SelectBuilder
{
}
}