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

Make AddAsync and AddRangeAsync really async #7447

Merged
merged 1 commit into from
Jan 20, 2017
Merged

Make AddAsync and AddRangeAsync really async #7447

merged 1 commit into from
Jan 20, 2017

Conversation

ajcvickers
Copy link
Contributor

Issue #7446

Copy link
Member

@AndriySvyryd AndriySvyryd left a comment

Choose a reason for hiding this comment

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

:shipit:

{
await (_graphAttacher
?? (_graphAttacher = InternalServiceProvider.GetRequiredService<IEntityGraphAttacher>()))
.AttachGraphAsync(entry, entityState, cancellationToken);
Copy link
Member

Choose a reason for hiding this comment

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

Consider breaking into two statements to improve readability

await SetEntityStateAsync(entry.GetInfrastructure(), EntityState.Added, cancellationToken);

return entry;
}
Copy link
Member

Choose a reason for hiding this comment

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

Consider refactoring these methods to make them structurally equal to the sync versions

@ajcvickers ajcvickers merged commit f99a8c0 into dev Jan 20, 2017
@bricelam bricelam deleted the TheRealDC0119 branch January 24, 2017 23:33
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.

3 participants