Skip to content

Improves compatibility of certain async query extension methods with EntitySets #413

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

Merged
merged 5 commits into from
Dec 24, 2024

Conversation

alex-kulakov
Copy link
Contributor

Add special wrapper for queries that are not IAsyncEnumerable natively, such as EntitySets. The wrapper allows to apply .ToArrayAsync/ToListAsync/ToHashSetAsync extension methods to EntitySets. Correct implementation of IAsyncEnumerable would take a lot of resources because many APIs should support async operations, this approach less painful, though has a caviar - in ClientProfile mode results does not contain local changes.

- added EntitySet as valid case of source to all ToXxxAsync extension tests
- applied current formatting rules
Such as EntitySets. The wrapper allows to apply .ToArrayAsync/ToListAsync/ToHashSetAsync
extension methods to EntitySets. Correct implementation of IAsyncEnumerable would
take a lot of resources because many apis should support async operation, this
approach less painfull, though has a caviar - in ClientProfile mode results
does not contain local changes.
- added remark that methods cause query execution and that results
may not include local changes in some cases.
- similar methods grouped in regions
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.

1 participant