Skip to content

NH-3982 - Simple query with Cacheable, Fetch and SingleOrDefault throws exception (regression from 3.3.0) #1372

@nhibernate-bot

Description

@nhibernate-bot

Lee Timmins created an issue — 12th April 2017, 9:29:54:

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions