Repository navigation
Getting started shows a read-only model, async-only examples, and inferred parameters - #112
Merged
Merged
Conversation
…ed member Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…fore and after await their terminals Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…m the variable Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nc too Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What changes
Postmodel uses{ get; init; }for every property, andIdisrequired.init(C# 9) andrequired(C# 11) work, so read-only models are fine.OpenAsync,ExecuteReaderAsync,ReadAsync,await ... ToListAsync(cancellationToken)). Row-against-row alignment and the "nothing" rows are unchanged.QueryAsync<T>, keeping that comparison async against async. Its "Rows." note says so. Line counts are unchanged.AddParam(variable)in each example now carries a short comment: name and type inferred from the variable (or the member). Same in the READMEs.Why
A
{ get; set; }model hides that read-only classes work, and a sync terminal teaches the fallback instead of the normal way. The comment shows that a parameter needs neither a typed name nor a type.Checks
Gate: Release and Debug builds 0 warnings; 9255 tests passed in each, 0 failed; all 96 sample checks passed; style and analyzers 0 findings on every project; DocFX 0 warnings, 0 errors.
🤖 Generated with Claude Code