-
Notifications
You must be signed in to change notification settings - Fork 163
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
Unable to cast object of type 'System.Linq.Expressions.InstanceMethodCallExpressionN' to type 'System.Linq.Expressions.LambdaExpression' #13
Comments
I've got the same problem! What is the cause for it? Any help appreciated |
Any thoughts on this, please? No queries containing grouping work. |
I am not sure on this particular issue. I didn't write the original code but am officially maintaining it on GitHub. If you could troubleshoot more and potentially provide a fix, I will gladly merge the change. |
Hello, You use Compile if you want to compile your expression to C#. But you use .AsExpandable() and .Invoke() if you want to compile your expression to SQL via LINQKit. Like this:
The expression LINQ can be outside of the MyDbContext.
|
Can you please reopen? I forgot about this ticket. I'll investigate and post an update |
Sure thing |
@abatishchev, Is this still valid? |
Sorry about this, changed the job, stopped using EF, really don't have time to take a look on this. |
fuck |
I have a service performing some aggregation which I want make plugable::
And here's the query I want to plug this service in:
So I used LinqKit:
But it throws an exception:
Is is fixable on my side, or requires investigation on your side? Thanks!
The text was updated successfully, but these errors were encountered: