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

Refactor and improve async documentation #2605

Merged
merged 2 commits into from
Sep 3, 2020
Merged

Refactor and improve async documentation #2605

merged 2 commits into from
Sep 3, 2020

Conversation

roji
Copy link
Member

@roji roji commented Sep 2, 2020

  • Merge query and saving async pages
  • Move under fundamentals
  • Document ambiguous invocation issues with System.Interactive.Async and show workaround.

Closes #1722
Related to #1332
Related to dotnet/efcore#18124

@roji roji requested a review from a team September 2, 2020 15:22
entity-framework/core/miscellaneous/async.md Outdated Show resolved Hide resolved
entity-framework/core/miscellaneous/async.md Outdated Show resolved Hide resolved
entity-framework/core/miscellaneous/async.md Outdated Show resolved Hide resolved
entity-framework/core/miscellaneous/async.md Show resolved Hide resolved
samples/core/Querying/Async/Sample.cs Outdated Show resolved Hide resolved
Unfortunately, referencing System.Interactive.Async causes ambiguous invocation compilation errors on LINQ operators applied to EF's DbSets; this makes it hard to use both EF and System.Interactive.Async in the same project. To work around this issue, add AsQueryable to your DbSet:

```c#
var groupedHighlyRatedBlogs = await context.Blogs
Copy link
Contributor

Choose a reason for hiding this comment

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

use sample rather than inline code.

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'd love to, but I can't 🤣

This code sample can't coexist with the simpler one just above in the same project...

Copy link
Contributor

Choose a reason for hiding this comment

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

You would need a different project. 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

Hate it :) But did it...

@smitpatel
Copy link
Contributor

Did you update the PR? Comments are marked as resolved but I don't see changes.

@roji
Copy link
Member Author

roji commented Sep 2, 2020

Sorry, commit got botched somehow... new version up.

* Merge query and saving async pages
* Move under fundamentals
* Document ambiguous invocation issues with System.Interactive.Async
  and show workaround.

Closes #1722
Related to #1332
Related to dotnet/efcore#18124
@roji roji requested a review from smitpatel September 3, 2020 14:26
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.

Unify the two async doc pages (querying/saving) into one
3 participants