DefaultIfEmpty not supported when used with a GroupBy

Description

The following query will generate a System.NotSupportedException : The DefaultIfEmptyResultOperator result operator is not current supported

from o in session.Query<Order>()
from ol in o.OrderLines.DefaultIfEmpty()
group ol by ol.Manufacturer into grp
select new {grp.Key}

This relates to NH-2379.

I will provide a failing test and a fix shortly.

Environment

None

is related to

Activity

Show:

Ricardo Peres May 23, 2013 at 12:54 PM

Yep

Alex Zaytsev May 23, 2013 at 11:35 AM

Ricardo, do you mean NH-3027?

Ricardo Peres May 23, 2013 at 10:07 AM

Still not possible to group by a full entity, just by one or more of its properties, right?

Daniel Laberge May 23, 2013 at 4:03 AM

No problem, happy to help!

Alex Zaytsev May 23, 2013 at 1:20 AM

Thanks Daniel

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created May 9, 2013 at 3:30 PM
Updated September 21, 2014 at 12:42 PM
Resolved May 23, 2013 at 1:18 AM
Who's Looking?