Find LINQ ambiguities introduced by .NET 9 IAsyncEnumerable extensions

Proprietary

.NET 9 added LINQ extension methods on IAsyncEnumerable<T>. Types implementing both IQueryable<T> and IAsyncEnumerable<T> (notably EF Core DbSet<T>) now produce ambiguous Where/Select/FirstOrDefault/etc. calls. Flags such calls for manual disambiguation (typically by inserting .AsQueryable()).

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindAsyncEnumerableLinqAmbiguity
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindAsyncEnumerableLinqAmbiguity

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.