Skip to content

Feat/multitenant db improvements#1150

Closed
AndrewTriesToCode wants to merge 26 commits into
nextfrom
feat/multitenant-db-improvements
Closed

Feat/multitenant db improvements#1150
AndrewTriesToCode wants to merge 26 commits into
nextfrom
feat/multitenant-db-improvements

Conversation

@AndrewTriesToCode

@AndrewTriesToCode AndrewTriesToCode commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

This PR adds:

  • extension methods AddMultiTenantDbContext and AddPooledMultiTenantDbContext on IServiceCollection which handle extra setup needed at injection time
  • simplifies the MultiTenantDbContext and IdentityMultiTenantDbContext constructors
  • gives set access to ITenantInfo directly IMultiTenantDbContext, use with caution
  • update docs and tests

@AndrewTriesToCode

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved the PR merge conflicts by merging next and fixing conflicted docs in commit 6e97fb0 (with a follow-up typo fix in 50c99ea).

@AndrewTriesToCode AndrewTriesToCode force-pushed the feat/multitenant-db-improvements branch from 9474e2e to 8ed44cb Compare June 14, 2026 15:56
AndrewTriesToCode and others added 14 commits June 14, 2026 11:09
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.3 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@df4cb1c...9c091bb)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.3 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v6.0.3...9c091bb)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…r in update-dependencies workflow (#1162)

* Initial plan

* fix: handle dotnet-outdated exit code 3 and use random heredoc delimiter in update-dependencies workflow

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](actions/setup-dotnet@9a946fd...26b0ec1)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-version: 5.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@AndrewTriesToCode AndrewTriesToCode force-pushed the feat/multitenant-db-improvements branch 2 times, most recently from 13e744d to ea7823f Compare July 2, 2026 23:22
BREAKING CHANGE: IMultiTenantContext, IMultiTenantContextAccessor, IMultiTenantContextSetter, MultiTenantContext, and related accessor implementations are removed. Use ITenantContext and TenantContext instead.

BREAKING CHANGE: TenantContext is now scoped and TenantInfo is write-once per context instance. Consumers that previously reassigned TenantInfo during a request or operation must switch to creating a new scoped context.
BREAKING CHANGE: Core extension and tenant resolution APIs now consume ITenantContext/TenantContext rather than the removed IMultiTenantContext types.
BREAKING CHANGE: HttpContext tenant access APIs were simplified and include TrySetTenantInfo behavior updates; callers should update extension usage accordingly.
BREAKING CHANGE: MultiTenantDbContext no longer exposes IMultiTenantContextAccessor constructor overloads. Use parameterless/DbContextOptions constructors and AddMultiTenantDbContext, AddPooledMultiTenantDbContext, or MultiTenantDbContext.Create.
…ructors

BREAKING CHANGE: MultiTenantIdentityDbContext variants drop IMultiTenantContextAccessor constructor overloads and follow the new EFCore constructor model.
@AndrewTriesToCode AndrewTriesToCode force-pushed the feat/multitenant-db-improvements branch from ea7823f to 3487a22 Compare July 2, 2026 23:31
@AndrewTriesToCode AndrewTriesToCode deleted the feat/multitenant-db-improvements branch July 3, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants