Skip to content

Conversation

@zoriya
Copy link
Contributor

@zoriya zoriya commented Oct 28, 2023

Before this changes, doing:

database.Users.Include(x => x.Orders).First()

resulted in a null Orders field. This fixes this issue.

This also fixes a bug where query rewriting would be disabled when it should not.

@koenbeuk koenbeuk merged commit dfa59c8 into koenbeuk:master Oct 31, 2023
@koenbeuk
Copy link
Owner

Looks good, I am in general still somewhat concerned about corner cases that we haven't caught yet and otherwise a negative performance impact for doing query root rewrites. It would be great if we can at least cache and reuse the generated projectable select expression and give the user the ability to opt in/out of this feature altogether.

I'm planning on diving back into the repo and get things cleaned up and ready to go for EF 8, will also look into this then.

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants