Simple query with Cacheable, Fetch and SingleOrDefault throws exception (regression from 3.3.0)

Description

This is related to https://nhibernate.jira.com/browse/NH-3186. However if you say:

var query = db.Users
.Cacheable()
.Fetch(x => x.Role)
.Where(x => x.Name == "xxx")
.SingleOrDefault();

Then you get the same error thrown in the ticket above. I am currently upgrading from version 3.3.4 and this used to work fine.

Environment

None

Activity

Show:

Frédéric Delaporte 
November 14, 2017 at 5:41 PM

Migrated to #1372.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created April 12, 2017 at 9:29 AM
Updated November 14, 2017 at 5:41 PM
Resolved November 14, 2017 at 5:41 PM
Who's Looking?