Skip to content

ExpressionParser finds Types from IEnumerable instead of IQueryable (breaks Code) (worked in 1.3.9) #801

Closed
@jogibear9988

Description

@jogibear9988

1. Description

I've the following Code:

                    var expression = DynamicExpressionParser.ParseLambda(qry.GetType(), null, complexQueryString, objs.ToArray());
                    Delegate del = expression.Compile();
                    var resultIv = del.DynamicInvoke(qry);
                    qry = resultIv as IQueryable;

where qry.GetType() is of type Table wich inherits from IQueryable

My compleyQueryString looks like this:

  "it.GroupBy(MessageClassName).Select(it.Key).Where(it != null).Distinct().OrderBy(it).Take(1000)"

this results in the following Expression Tree (in 1.3.10 and later)
image

but in Version 1.3.9 it has the following Tree:

image

2. Exception

There is no exception, but the Query is no IQueryable after the Parsing any more, and so my code fails

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions