-
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
Remove IAsyncEnumerable from DbSet #24145
Conversation
(binary breaking changes in ASP.NET tests)
602e4a7
to
82e0573
Compare
The SDK doesn't seem related I think. This is a compiler-specific thing. The compiler is expected to issue a compile-warning if It's very odd that await foreach is still working. I can't think of a reason. |
Yeah, I was referring to the compiler, which is delivered as part of the SDK. Regardless, I agree this is odd, though unlikely to be important here specifically. Since EF Core 6.0 will target .NET 5.0 at a minimum, the default langversion is 9.0 in any case (and users will always have the option to use AsAsyncEnumerable if they need to). |
Fixes #24041
Some compat notes:
await foreach
works fine, even if LangVersion is set to 7.0. Am not sure if this is because the SDK is new - if so, then new SDKs are required to build anything depending on EF Core 6.0 anyway (since we target net5.0).