Skip to content
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

Most of explicit and lazy loading for no-tracking queries #29865

Merged
merged 3 commits into from
Dec 17, 2022

Conversation

ajcvickers
Copy link
Member

Part of #10042

Current limitations are:

  • The lazy-loading delegate injection doesn't support tracking of when an navigation is loaded or not; I have an idea for this
  • There is no identity resolution when the entities are not tracked, even if the query behavior is NoTrackingWithIdentityResolution
  • The model should validated for only a single service property for a given type

I will submit PRs and/or file issues for these things.

@ajcvickers ajcvickers requested a review from a team December 15, 2022 18:41
Part of #10042

Current limitations are:

- The lazy-loading delegate injection doesn't support tracking of when an navigation is loaded or not; I have an idea for this
- There is no identity resolution when the entities are not tracked, even if the query behavior is NoTrackingWithIdentityResolution
- The model should validated for only a single service property for a given type

I will submit PRs and/or file issues for these things.
var memberType = memberInfo.GetMemberType();
if (entityType.GetServiceProperties().Any(p => p.ClrType == memberType))
{
continue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth logging a message

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #29881 for this. Rather than warning here, it might be better to let them accumulate and then fail in model validation.

@ajcvickers ajcvickers merged commit 6087c06 into main Dec 17, 2022
@ajcvickers ajcvickers deleted the LoadedByProxy1209 branch December 17, 2022 13:10
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