ExpressionMethod with count on another table #3466
-
I'm probably doing something wrong here but I'm getting an ArgumentOutOfRangeException with this expression method: private static Expression<Func<E_MAILER_MESSAGE_LIST, DataConnection, int>> AttachmentCountExpression()
{
return (m, dc) => dc.GetTable<E_MAILER_ATACHMENT>().Where(a => a.ID == m.ID).Count();
} This is the call stack:
|
Beta Was this translation helpful? Give feedback.
Answered by
primozcerar
Mar 15, 2022
Replies: 3 comments 1 reply
-
Looks like a bug. Please create issue with small sample and model. |
Beta Was this translation helpful? Give feedback.
1 reply
-
After updating Linq2db to version 2.9.8 the error is gone. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
primozcerar
-
Unfortunately after updating to 3.6.0 this doesn't work again with a different error. I'll post a new question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After updating Linq2db to version 2.9.8 the error is gone.