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
LINQ query dynamic component by interface hangs the application #3150
Comments
Infinite loop nhibernate-core/src/NHibernate/Linq/Visitors/VisitorUtil.cs Lines 27 to 50 in 6c70217
Introduced in #237 (4.0.0.Alpha2) |
It's not a regression. It didn't stuck before #237 but failed in some other way - dynamic components on unmapped interface never worked in LINQ |
@bahusoid do you have a suggestion for a temporary fix? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I already tried looking into this as this is what I do for my components. However the
But this had no effect. |
Indeed. It seems I thought of component mapping myself. You can try to specify |
Thanks @bahusoid that worked. Please note this doesn't fix the original issue, it just flips it so now when querying a dynamic component against the |
I've decided that the fix of using I debated closing out this issue but I'll leave it open as it would be better to throw an exception than get stuck an infinite loop. |
I have the following query which executes fine:
However if I change it to use an interface instead then the query hangs.
Please see the attached application which helps demonstrate this. This problem only happens when filtering against an attribute.
ConsoleApp1.zip
The text was updated successfully, but these errors were encountered: