Skip to content

Don't throw when attempting to load from a newly Added entity with unknown FK values#32343

Merged
ajcvickers merged 1 commit into
mainfrom
231118_NotYetBeacher
Nov 20, 2023
Merged

Don't throw when attempting to load from a newly Added entity with unknown FK values#32343
ajcvickers merged 1 commit into
mainfrom
231118_NotYetBeacher

Conversation

@ajcvickers

Copy link
Copy Markdown
Contributor

Fixes #32314

…known FK values

Fixes #32314

We added this check primarily for lazy-loading of untracked entities. However, it causes a regression when accessing navigation properties on newly Added entities, where a no-op is reasonable.
@ajcvickers

Copy link
Copy Markdown
Contributor Author

Again, will cherry-pick for 8.0.

@ajcvickers
ajcvickers requested a review from a team November 18, 2023 13:24
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.

EFC8: Lazy Loading regression on newly created objects

2 participants