Skip to content

feat(adonet): support DbDataSource - #10429

Merged
ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:reubenbond-support-dbdatasource-adonet
Aug 11, 2026
Merged

ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:reubenbond-support-dbdatasource-adonet

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

ADO.NET providers currently require connection strings, which prevents applications from using provider features such as Npgsql's managed-identity token refresh. This adds a provider-neutral System.Data.Common.DbDataSource alternative across clustering, gateway discovery, persistence, reminders, grain directories, and streaming.

Each provider now requires exactly one of ConnectionString or DataSource. Orleans validates that the data source matches the configured invariant, opens connections asynchronously, disposes each connection after use, and leaves data-source lifetime ownership with the caller or DI container. Existing connection-string configuration remains compatible, including named providers through keyed DI.

The change also updates public API baselines and documentation, and adds coverage for validation, ownership, named DI, SQLite persistence, and SQL Server, PostgreSQL, MySQL, and SQLite driver compatibility.

Fixes: #10247

Microsoft Reviewers: Open in CodeFlow

@ReubenBond
ReubenBond force-pushed the reubenbond-support-dbdatasource-adonet branch 2 times, most recently from d7e481a to 705ca95 Compare August 10, 2026 23:42
Allow ADO.NET providers to use caller-owned DbDataSource instances as an alternative to connection strings, with provider validation and async connection opening.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: cd1d2baa-d32c-4074-8c06-c5711889b6db
@ReubenBond
ReubenBond force-pushed the reubenbond-support-dbdatasource-adonet branch from 705ca95 to a4e136e Compare August 10, 2026 23:44
@ReubenBond
ReubenBond merged commit db12964 into dotnet:main Aug 11, 2026
72 checks passed
@ReubenBond
ReubenBond deleted the reubenbond-support-dbdatasource-adonet branch August 11, 2026 00:57
This was referenced Aug 28, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use DbDataSource as alternative to plain connectionString

1 participant