-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Expression of type 'System.Collections.Generic.IEnumerable1 cannot be used for parameter of type System.Collections.Generic.IAsyncEnumerable
1
#14812
Comments
I am using the version |
I have the same error, only when calling SingleOrDefaultAsync(). And when I'm using the non-async version, SingleOrDefault, I'm only getting a warning and lots of selects:
On EF Core 2.1, MS SQL 2017 |
I see that the warning and the error are caused by Mapster. When I'm using AutoMapper, it all works correctly. |
Clearing milestone to discuss propose-close in regular triage. |
@Mortana89 - Can you share a repro project? |
No sorry, it's been too long, we've switched to Cosmonaut somewhere in March and are using that in production now, so will be too difficult for me to repro now... |
Just finished upgrading all our Cosmos provider queries to the Async equivalent, and am getting the following exception on a very simple query:
var result = await _context.ExecutionParts.Include(x => x.ExecutionRun).SingleOrDefaultAsync(x => x.Id == executionPartId);
return result;
Further technical details
EF Core version: 2.2.1
Database Provider: Cosmos DB
Operating system: Win10
IDE: Visual Studio 2017
The text was updated successfully, but these errors were encountered: