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

FirstOrDefaultAsync method is missing #24

Closed
ehsaanwelcome opened this issue Jun 6, 2016 · 6 comments
Closed

FirstOrDefaultAsync method is missing #24

ehsaanwelcome opened this issue Jun 6, 2016 · 6 comments
Assignees

Comments

@ehsaanwelcome
Copy link

Hi,
in following query, i can not use async version of FirstOrDefault method
_db.Orders.Where($"----").Select($"---").FirstOrDefaultAsync()

@StefH
Copy link
Collaborator

StefH commented Jun 6, 2016

There is no Async support yet, I'll take a look how to add this.

Update:
Async is only supported when using a IAsyncQueryProvider, and currently System.Linq.Dynamic.Core
does not have any dependency on EntityFramework.

@StefH StefH self-assigned this Jun 6, 2016
StefH added a commit that referenced this issue Jun 6, 2016
StefH added a commit that referenced this issue Jun 6, 2016
@StefH
Copy link
Collaborator

StefH commented Jun 7, 2016

Questions:

  • Which .Net Framework do you use ? [.net 4.5.2 ?]
  • Which version from EntityFramework do you use ? [ef 6.1.3 ?]

@ehsaanwelcome
Copy link
Author

6.1.3
4.6

StefH added a commit that referenced this issue Jun 7, 2016
StefH added a commit that referenced this issue Jun 8, 2016
@StefH
Copy link
Collaborator

StefH commented Jun 8, 2016

This new functionality has been added to a new NuGet package : https://www.nuget.org/packages/EntityFramework.DynamicLinq/1.0.0

Can you please use this NuGet and check if FirstOrDefaultAsync is working as expected ?

@ehsaanwelcome
Copy link
Author

It worked,
Thanks

@StefH
Copy link
Collaborator

StefH commented Jun 10, 2016

OK. Thank you for verifying, I'll close the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants