Skip to content

Enable test accessing Component's Parent property in LINQ #3024

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

Merged
merged 2 commits into from
Mar 13, 2022

Conversation

bahusoid
Copy link
Member

#1583 test case works OK with NHibernate 5.3+

Generated SQL also looks valid:

    select
        children1_.ParentId as col_0_0_ 
    from
        Parent parent0_ 
    inner join
        Children children1_ 
            on parent0_.ParentId=children1_.ParentId

Closes #1583

@hazzik
Copy link
Member

hazzik commented Feb 21, 2022

I wonder what has fixed the behaviour:)

@bahusoid
Copy link
Member Author

Not sure but might be #2036 where some complex logic was introduced that tries to correctly detect mapped type for LINQ expression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component's Parent property is not accessible in queries
3 participants