QueryOver does not throw exception when querying against unmapped class.

Description

var orders = Session.QueryOver<Order>().List();

Expected Result:

An exception should be thrown of type:

NHibernate.HibernateException : Unable to locate persister: NHPlayground.Domain.Entities.Order which would match the Session.Load<> behavior.

Actual Result:

A list is returned with a count of 0.

Environment

None

Activity

Show:

Alex Zaytsev September 7, 2020 at 9:50 AM

Moved here.

Jan Verhaeghe January 27, 2017 at 2:35 PM

Any progress on this issue to report?

Adam Lith October 24, 2013 at 7:51 AM

Hi,

I have encountered the same behaviour.
Are there any plans of fixing this? =)

Regards,
Adam

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created August 7, 2011 at 9:50 PM
Updated September 14, 2020 at 11:07 PM
Resolved September 7, 2020 at 9:50 AM
Who's Looking?