i have tableA and tableB
tableA has a B_Id property.
This query works fine:
IEnumerable<A> a = Session.Query<A>().Fetch(r=>r.B);
but i want something like:
IEnumerable<A> a = Session.Query<A>().Where(r=>r.B.Active).Fetch(r=>r.B);
it seems like when i do this, it no longer does a simple outer join and if there are no active records in table B, i get no results.
I want to do a pure outerjoin that will still give me results but with the B property of the A entity as null.
Does nhibernate LINQ support this ability to put a where clause on your outerjoined table??
According to this post on the nhusers group it’s apparently not supported, and you’ll have to use HQL.
As to the why, I would speculate that the authors plan to add it but had higher priorities. Personally I’d see it as a key feature.