Migration Guides (v1 -> v2) — SqlBuilder
Upgrade guide from published NuGet v1.0.0 to v2.0.0 (BC-001–BC-010), plus visibility into unreleased local 3.0.0.
Migrating v1.0.0 to v2.0.0 (BC-001–BC-010)
Section titled “Migrating v1.0.0 to v2.0.0 (BC-001–BC-010)”PostgreSqlDapperExtensionsCancellationToken(BC-001): Recompile callers invoking PostgreSQL Dapper extensions afterCancellationTokenwas added to method signatures.- Strict parameter & identifier guards (
BC-002,BC-003):ParameterManager.AddNamedrejects duplicate parameter names and strips@/$prefixes;SqlNamingHelper.ValidateIdentifierenforces strict identifier characters. - Bounds & ordering guards (
BC-004,BC-005): NegativeLimit/OffsetthrowsArgumentOutOfRangeException, andOrderByDynamicaccepts at most 2 dot-separated segments (table.column). - Query projections &
Fetchdeprecation (BC-006–BC-010):CompileSelectaccumulates multi-projection clauses,InsertQuery<T>.ValuesthrowsInvalidOperationExceptionon invalid states,SelectQuery<T>.Fetchis marked[Obsolete]in favor ofLimit, validation errors surface asSqlValidationException : SqlBuilderException, and all16packages align on2.0.0.
Note on Unreleased Local v3.0.0 (BC-011–BC-017)
Section titled “Note on Unreleased Local v3.0.0 (BC-011–BC-017)”Local workspace 3.0.0 (CHANGELOG.md [3.0.0] - 2026-11-09, unpublished on NuGet) adds BC-011–BC-017, including PostgreSqlExtensions identifier validation, outer parentheses on compound OR predicates, internalized BulkInsertOperation<T>, and explicit [RequiresDynamicCode] / [RequiresUnreferencedCode] annotations on AotConnectionExtensions ISqlQuery overloads.