Logo Barret Codes
  • Home
  • About
  • Engage With Me
  • Recent Posts
  • Silly Little Apps
  • More
    Podcasts
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Series
  • Multi-Tenant .NET
A view of apartments
Multi-Tenant .NET: Shared Database With Partitions

Part 1 of 3. Building a shared-database multi-tenant app in .NET with EF Core global query filters, then using SQL Server table partitioning so the database physically keeps each tenant’s data in its own drawer.

  • dotnet
  • ef-core
  • sql-server
  • multi-tenancy
  • architecture
Friday, July 17, 2026 | 13 minutes Read
House for rent sign
Multi-Tenant .NET: Shared Database With Schema Separation

Part 2 of 3. Moving each tenant into its own SQL Server schema — which lets us delete the query filter, the TenantId column, and the SaveChanges stamp from Part 1, in exchange for exactly one new thing: a schema-aware model cache key.

  • dotnet
  • ef-core
  • sql-server
  • multi-tenancy
  • architecture
Thursday, July 30, 2026 | 7 minutes Read
Navigation
  • About
  • Engage With Me
  • Recent Posts
  • Silly Little Apps
  • Podcasts
  • Posts
Contact me:
  • barretblake@live.com
  • barretb
  • Barret

Toha Theme Logo Toha
© Copyright Barret Blake.
Powered by Hugo Logo