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

Support async extension methods on IQuerayble #256

Closed
kichalla opened this issue May 23, 2014 · 2 comments
Closed

Support async extension methods on IQuerayble #256

kichalla opened this issue May 23, 2014 · 2 comments
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@kichalla
Copy link
Contributor

I am using InMemory store where I use the "SingleOrDefaultAsync" api to retrieve an item…I am noticing that even though the item with the given id is present, it is not retrieving it…the sync version “SingleOrDefault” retrieves it fine…

// GET api/suggestions/5
public async Task<IActionResult> Get(int id)
{
    Suggestion suggestion = await dataContext.Suggestions.SingleOrDefaultAsync(sug => sug.Id == id);
    if (suggestion == null)
    {
        return new CustomHttpStatusCodeResult(404);
    }

    return new CustomJsonResult(suggestion);
}

It seems this is a known issue...creating issue for tracking...

@divega divega added this to the 1.0.0-alpha2 milestone May 23, 2014
@divega
Copy link
Contributor

divega commented May 23, 2014

Assigned to Andrew who already mentioned he will be looking at this.

@anpete anpete closed this as completed in 706e862 Jun 10, 2014
@anpete anpete removed their assignment May 6, 2015
@divega
Copy link
Contributor

divega commented Aug 17, 2015

@weitzhandler EF7 defines and support several async extension methods for IQueryable (see https://github.com/aspnet/EntityFramework/blob/dev/src/EntityFramework.Core/Extensions/EntityFrameworkQueryableExtensions.cs). Is there anything you are missing there or that you have found isn't working correctly?

In case you are asking for the support for async operators over IQueryable to become more first class as opposed to an EF extension, it might help to file an issue at https://github.com/dotnet/corefx.

@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
@ajcvickers ajcvickers modified the milestones: 1.0.0-alpha2, 1.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

5 participants