-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there Way to enter a Complex query #66
Comments
No. I want everything in one string. |
You see here: https://dynamiclinq.codeplex.com/SourceControl/latest#DynamicLinq/DynamicLinq/Program.cs |
Ah ok. I am not sure on this, if my fork does even support this notation. Did you try this? |
I'll try... If not, I'll look to patch that this will also work! |
Thanks a lot. |
Does not work ... :-( Now we need to look what to do... |
One problem: In my commit I removed the
Problem here is, we should only do this on the last "new" in the string. How can we decide if this is the case? |
I've now added it back, but it is a Problem if have have two select new statements, where the first one should be an anonymous type! |
I dont have access to my pc this week. Please investigate some more, I will try to look and merge at sunday. (which branch did you take?) |
Work on #66 -> Should work now. Tests will follow on VS2017 support!
fixed |
Can you create a unit-test which tests all this code? Expression ParseLambdaOperator()
{
Expression expr = ParseOrOperator();
if (_textParser.CurrentToken.Id == TokenId.Lambda && _it.Type == expr.Type)
{
_textParser.NextToken();
if (_textParser.CurrentToken.Id == TokenId.Identifier ||
_textParser.CurrentToken.Id == TokenId.OpenParen)
{
var right = ParseConditionalOperator();
return Expression.Lambda(right, new[] { (ParameterExpression)expr });
}
_textParser.ValidateToken(TokenId.OpenParen, Res.OpenParenExpected);
}
return expr;
} I dont understand which test I should write here to cover this code. |
i'll look |
I don't know when this part of the code will be hit... |
We should also check, to support Join Operator: https://dynamiclinq.codeplex.com/discussions/471215 |
|
For example, I've a IEnumerable Object and would like to give this string to dynamic linq:
for Example smth like this
and it returns a object, so the result could be everything
The text was updated successfully, but these errors were encountered: