-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
The LINQ expression 'InternalDbSet.Count()' could not be translated #752
Comments
if used "WrappedConstant" technique, there no exception. var q = context.Roots;
var qW = ExpressionHelper.WrappedConstant(q);
var qDynGood = q.Where(c, "@0.Count(it.Id == root.Id) > 0", qW);
qDynGood.ToArray(); |
@monstress2 Can you try naming your entity differently. Or set |
For better understanding, I rewrite code (renames vars):
I guess I use the word 🔸 qRoot.Where("@0 🔹.Where(🔸 root.ID == it.ID 🔹 ).Count() > 0", qSub 🔹); As I already wrote above. I have a solution to the problem. I use a wrapper for the subquery parameter. But I think you might want to improve your library. Thanks you anyway. |
Hi.
Sub query throw error:
The text was updated successfully, but these errors were encountered: