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.