Repository navigation
tests: spike F binds a declaration when the model is finalized - #181
Merged
Merged
Conversation
For the decision on #114. A miniature kit on EF Core alone holds a condition unbound from the call, binds it in a finalizing convention and stores its text. 45 tests on Npgsql, SQL Server and SQLite, with no database, say what a convention sees there: a property's final nullability and column name, and no type mapping and no store type, so the literal is the mapping source's. The design-time model, the runtime model, a snapshot and a compiled model hold text alone, and a snapshot is not bound again. The decision taken from it on 2026-11-24 is in the plan's section 7 and in CLAUDE.md: bound at model finalization, stored as segments. It is not built yet. Closes #177 Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #177
Problem
#114 proposes to bind a lambda when the model is finalized, not where it is written, and listed four points to decide. None could be decided without knowing what a convention sees at that moment, and whether
Declare's refusal of a repeated key survives.Change
spikes/F.Binder: a miniature kit on EF Core alone. A condition is held on the entity type as an object from the call on, bound by a finalizing convention and replaced by its text. ItsBindertranslates a comparison of a property with a value and nothing more.Nothing under
src/changes.Tests
45 tests, 15 on each of Npgsql, SQL Server and SQLite, with no database. The CI lane for spikes runs every project under
spikes/.Each mechanism was removed in turn in a scratch copy, built clean:
🤖 Generated with Claude Code