Skip to content

NH-2829 - QueryOver/Criteria should throw exception when querying against unmapped class #1095

Closed
@nhibernate-bot

Description

@nhibernate-bot

Shane Courtrille created an issue — 7th August 2011, 21:50:14:

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.


Adam Lith added a comment — 24th October 2013, 7:51:02:

Hi,

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

Regards,
Adam


Jan Verhaeghe added a comment — 27th January 2017, 14:35:59:

Any progress on this issue to report?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions