๐ Dev.to
Multi-tenant reporting in ASP.NET Core: row-level security your users can't bypass
By Razi Syed. Sample code for this article: github.com/dotnetreport/dotnetreport-multitenant-rls
If you run a multi-tenant SaaS product on .NET, you have already solved tenant isolation for the parts of the app you wrote. Every query your code issues carries a WHERE TenantId = @tenant , or a global query filter in EF Core does it for you, and you sleep fine.
Then a customer asks for reporting. Not a fixed set of reports โ self-service reporting, where their analysts pick tables and c...


