This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.
When asking NHibernate to query an unmapped class, different query APIs have different behaviors:
- LINQ, Query Over and Criteria silently ignore the query and return no results;
- HQL, ISession.Get<T> and ISession.Load<T> fail with an exception.