Skip to content

NH-2978 - LINQ: Queries for unmapped entity types return empty result set #1106

Closed
@nhibernate-bot

Description

@nhibernate-bot

James Nail created an issue — 16th December 2011, 22:52:56:

in NH 3.2.0, if you do a LINQ query for an unmapped entity type it returns an empty result set instead of throwing an exception.

mySession.Query<MyUnmappedEntityType>().ToList();
mySession.Query<MyUnmappedEntityType>().Delete();

Since the HQL query implementation throws an exception in this scenario (ex, NHibernate.Hql.Ast.ANTLR.QuerySyntaxException --> "MyUnmappedEntityType is not mapped"), I would expect the LINQ provider to have the same behavior (it should throw an exception)


Anton Chelnokov added a comment — 2nd September 2015, 17:43:34:

4 years...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions