Skip to content

Take Source/SqlClient out of the build: the System.Data.SqlClient package has no version 11 - #325

Merged
electricessence merged 1 commit into
masterfrom
chore/detach-sqlclient
Dec 5, 2026
Merged

electricessence merged 1 commit into
masterfrom
chore/detach-sqlclient

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

What

The System.Data.SqlClient package has no version 11, so Source/SqlClient leaves the build. Its code stays in the repository, for reference.

  • Build: the project is out of Open.Database.Extensions.sln; Core's InternalsVisibleTo for it and the Core.Tests project reference are gone; the CI format step no longer lists it. Nothing else referenced it (checked tests.yml, the Benchmarks and samples projects, docfx.json, docsite/tools/perf/*.ps1, Directory.Build.props).
  • Source/SqlClient/README.md: short and plain: not built, not published for version 11, last release 10.3.0, use MSSqlClient on Microsoft.Data.SqlClient.
  • Docs: the release notes open the 11.0.0 section with one line (no version 11 of the package; 10.3.0 works with Core 10.x only); whats-new-11.md says the same in a clause; docsite/api/index.md drops the paragraph about the two packages declaring the same type names.

Tests

Only cases that exercised the System.Data.SqlClient package are dropped; each has a twin on the Microsoft.Data.SqlClient package (MSSqlClient) that stays, so nothing is moved:

  • AddParamIfConditionTests: the legacy command in five tests.
  • SqlServerParameterTypeTests: the legacy command and its Sent overload; the two literal cases only the legacy side had (0L, AddParamIf with SqlDbType.Int) now run on the Microsoft command.
  • NameCacheSourceTests: TwoCommands_FromOneLegacySqlServerFunction_ReadTheNamesOnce (twin TwoCommands_FromOneSqlServerFunction_ReadTheNamesOnce), its counting helper and RunAsync overload, and the legacy half of ANullFunction_IsRefused_BySqlServerExtensions.
  • CaptureLibraryCommandTests, SingleResultBeforeMapTests: the legacy command in one test each.
  • RowMapTests, ParameterBindingMatrixTests, ParameterByteZeroCompileTests: the legacy assembly leaves the assembly list and the filters that kept it out of the compile references.

Core.Tests: 16279 passed (16280 before: the one dropped test).

Checks

  • Gate (before the rebase onto 4566558, which only added docs, the version and two PublicAPI files): Release and Debug builds 0 warnings, Core.Tests net11.0 Release 16279 passed (Debug 16258 passed, 16 skipped), VS MSBuild, dotnet format style and analyzers 0 findings (the SqlClient project is no longer in the list), 267 sample checks, docfx 0 warnings. After the rebase: solution Release build 0 warnings, 0 errors.
  • Roslyn scan: 0 actionable. Roslynator: 0 findings on every project. Style scan: clean. Leak check over the whole diff and message: clean.
  • Swarm (haiku lenses, arbitrated): leftover references (found the tests.yml format list: fixed) and test twins (every removed hunk is legacy-only with a twin on MSSqlClient).

Not changed

Source/SqlClient code, its csproj and its IsPackable=false. Source/Extensions (the meta-package) is a separate follow-up.

🤖 Generated with Claude Code

…kage has no version 11

The package stays out of version 11 (not packable, never published for it), so the solution, Core's InternalsVisibleTo and the Core.Tests project reference no longer carry it. Its code stays in Source/SqlClient for reference, with a short README that says so and points to Open.Database.Extensions.MSSqlClient.

Tests: the cases that exercised only the System.Data.SqlClient package are dropped; each has a twin on the Microsoft.Data.SqlClient package (MSSqlClient) that stays. The parameter-binding compile tests no longer filter the legacy assembly out. Release notes and the version 11 article say the last release, 10.3.0, works with Core 10.x only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit f6983b8 into master Dec 5, 2026
9 checks passed
@electricessence
electricessence deleted the chore/detach-sqlclient branch December 5, 2026 19:51
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.

1 participant