Repository navigation
Reimagine DapperExtension as Writeback - #1
Merged
Merged
Conversation
Rewrite of the 2017 SQL Server-only helper as a modern .NET 8/10 library for insert/update/delete with database-generated values written back, optimistic concurrency and honest batching on SQL Server, PostgreSQL, MySQL and SQLite. - Mapping from standard DataAnnotations, conventions and a fluent API - Dialects render a small statement model; trigger-safe SQL Server path - InsertMany/UpdateMany/DeleteMany: chunked, transactional, exact key correlation (MERGE position / result set per row) - Writeback.SqlServer and Writeback.PostgreSql: SqlBulkCopy / binary COPY - 87 unit tests, 97 integration tests on four real databases, benchmarks - Docs: product thesis, ecosystem research, architecture, 14 ADRs, self-review, recipes, migration guide Renamed from DapperExtension to avoid confusion with the existing DapperExtensions package (ADR-014). Licensed MIT. Co-Authored-By: Claude Opus 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.
Summary
This rewrites the 2017 SQL Server-only helper as Writeback, the write side of Dapper:
InsertManyAsync/UpdateManyAsync/DeleteManyAsyncare chunked to parameter limits, transactional, and correlate keys exactly.[ConcurrencyCheck]/[Timestamp]raisesConcurrencyConflictException.Writeback.SqlServerandWriteback.PostgreSqladdBulkCopyAsync(SqlBulkCopy/ binaryCOPY).DapperExtensionspackage (ADR-014). Licensed MIT.Design rationale is in
docs/PRODUCT_THESIS.md,docs/architecture/ARCHITECTURE.mdanddocs/architecture/DECISIONS.md. The self-review findings are indocs/architecture/REVIEW.md.Testing
docs/BENCHMARKS.md.🤖 Generated with Claude Code