Skip to content

NH-2769 - Linq Fetch over component has no effect on generated SQL #1232

Closed
@nhibernate-bot

Description

@nhibernate-bot

cremor created an issue — 16th June 2011, 1:53:04:

NH-2615 fixed the exceptions that occured when a Linq query with a fetch on a component was executed but the fetch has still no effect on the generated SQL.

Attached is a patch that modifies the already existing test (NHSpecificTest\NH2705) so it also checks the generated statement.


David Roth added a comment — 10th May 2012, 11:32:17:

Is there any chance for fixing this issue soon? Anyone working on it or planning to do so?
We are using a lot of components in our project and we can`t fetch references with LINQ on collections because of this issue.


Oskar Berggren added a comment — 18th January 2013, 8:34:09:

David Roth has made a test case available at:
https://github.com/davrot/nhibernate-core/tree/NH3373


David Roth added a comment — 15th February 2013, 13:01:45:

New github location for the testcase: https://github.com/davidroth/nhibernate-core/tree/NH3373


ahmed zeyada added a comment — 24th December 2015, 20:57:25:

is there any workaround for this problem ? the only way i can see is fetching it through lazy loading which is not good solution

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions