Skip to content

Entity Projection: Fixed AsEntity() for root entity #1706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2018

Conversation

bahusoid
Copy link
Member

When instead of actual alias func argument is used:

var list = session.QueryOver<Entity>()
.Select(e => e.AsEntity())
.List();

exception is thrown:
Criteria\QueryOver alias '' for entity projection is not found.

@fredericDelaporte fredericDelaporte added this to the 5.2 milestone May 23, 2018
@hazzik hazzik merged commit 0390b46 into nhibernate:master May 23, 2018
@bahusoid bahusoid mentioned this pull request Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants