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

Remove LazyRef #15434

Merged
merged 1 commit into from Apr 22, 2019
Merged

Remove LazyRef #15434

merged 1 commit into from Apr 22, 2019

Conversation

ajcvickers
Copy link
Member

Fixes #15282

@ajcvickers ajcvickers requested review from bricelam, AndriySvyryd and roji and removed request for bricelam, AndriySvyryd and roji April 21, 2019 20:38
.Select(e => e.ToEntityEntry()).ToList());
Entries = entries
.Where(e => e.EntityState != EntityState.Unchanged)
.Select(e => e.ToEntityEntry()).ToList();
Copy link
Member

Choose a reason for hiding this comment

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

Why was this lazy?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think to stop creating EntityEntry instances when they are not needed. But for an exception that seems like overkill.

Copy link
Member

Choose a reason for hiding this comment

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

Agree, especially if we implement #11256

ajcvickers added a commit to dotnet/aspnetcore that referenced this pull request Apr 21, 2019
Fixes #9172

Needed to stop dotnet/efcore#15434 from breaking ASP.NET Core build.
ajcvickers added a commit to dotnet/aspnetcore that referenced this pull request Apr 22, 2019
Fixes #9172

Needed to stop dotnet/efcore#15434 from breaking ASP.NET Core build.
@ajcvickers ajcvickers merged commit bafd0c6 into master Apr 22, 2019
@ajcvickers ajcvickers deleted the LazyTown0421 branch April 22, 2019 16:58
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.

Remove LazyRef
2 participants