Skip to content

Fix Linq async to sync translations (again) - #164

Open
0xced wants to merge 2 commits into
zompinc:masterfrom
0xced:queryable-tolist
Open

Fix Linq async to sync translations (again)#164
0xced wants to merge 2 commits into
zompinc:masterfrom
0xced:queryable-tolist

Conversation

@0xced

@0xced 0xced commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The new approach is to check whether the synchronous method lives in the System.Linq.Queryable or the System.Linq.Enumerable namespace.

Also, it's now checking for a containing type ending with QueryableExtensions so that it covers more than just Entity Framework Core. For example, Marten's QueryableExtensions are now also covered.

After #108, #110 and #123 let's hope it's the definitive fix!

Currently fails with this compilation error:
> No overload for method 'ToList' takes 1 arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant