Skip to content

Resolve static-form queryable extension calls - #166

Merged
virzak merged 2 commits into
masterfrom
fix/static-form-queryable
Sep 12, 2026
Merged

virzak merged 2 commits into
masterfrom
fix/static-form-queryable

Conversation

@virzak

@virzak virzak commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Fixes #165.

Static calls were qualified by type alone, without the method name, so AnyAsync stayed on EF's class. The *QueryableExtensions decision from #164 is now one helper used by both the static and extension paths.

Generated with Claude Code

Calling EntityFrameworkQueryableExtensions.AnyAsync(query) directly,
rather than as an extension, generates code which does not compile.

Generated with Claude Code
A static call such as EntityFrameworkQueryableExtensions.AnyAsync(query)
had its type qualified without regard to the method, so it kept EF's
type even when the sync method lives in System.Linq. The decision #164
made for extension calls is now a helper which both paths use.

Generated with Claude Code
@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.47%. Comparing base (25eccb7) to head (92e41c4).

Files with missing lines Patch % Lines
...rc/Zomp.SyncMethodGenerator/AsyncToSyncRewriter.cs 83.33% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #166      +/-   ##
==========================================
+ Coverage   93.45%   93.47%   +0.01%     
==========================================
  Files          10       10              
  Lines        1589     1593       +4     
  Branches      373      374       +1     
==========================================
+ Hits         1485     1489       +4     
  Misses         26       26              
  Partials       78       78              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@virzak
virzak merged commit 29803e3 into master Sep 12, 2026
10 checks passed
@virzak
virzak deleted the fix/static-form-queryable branch September 12, 2026 13:19
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.

Static-form queryable extension calls don't compile

1 participant