Permalink
Browse files

Fixing an issue where we generated invalid code for SelectMany

  • Loading branch information...
1 parent 743758c commit 6cf969e1803ca6b431c11358bea4aa2c3177f08b @ayende ayende committed Sep 19, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 Raven.Client.Lightweight/Indexes/ExpressionStringBuilder.cs
@@ -1230,9 +1230,11 @@ private void MaybeAddCastingToLambdaExpression(MethodCallExpression node, int ar
switch (node.Method.Name)
{
case "Select":
- case "SelectMany":
Out("(Func<dynamic, dynamic>)(");
break;
+ case "SelectMany":
+ Out("(Func<dynamic, IEnumerable<dynamic>>)(");
+ break;
case "First":
case "FirstOrDefault":
case "Single":

0 comments on commit 6cf969e

Please sign in to comment.