so much effort ent into this another day the cleaning will be done and the support of regular selects.

This commit is contained in:
David Lebée
2018-03-13 22:22:10 -05:00
parent ba702d3e81
commit 0540554877
2 changed files with 11 additions and 2 deletions
@@ -181,6 +181,12 @@ namespace PoweredSoft.DynamicLinq.Helpers
var body = Expression.Call(typeof(Enumerable), "Sum", new[] { notGroupedType }, parameter, innerMemberLambda);
return body;
}
else if (selectType == SelectTypes.ToList)
{
var notGroupedType = parameter.Type.GenericTypeArguments[1];
var body = Expression.Call(typeof(Enumerable), "ToList", new[] { notGroupedType }, parameter);
return body;
}
throw new NotSupportedException($"unkown select type {selectType}");
}