I am building a multi-tenant application with shared database and shared schema approach. So as per the approach i have “Tenant_Id” column in each of my table. So is there any way to automatically attach a where clause in every query…
I am building a multi-tenant application with shared database and shared schema approach. So
Share
You can achieve this using a wrapper around your
DbContext, and override each collection of entities with a where clause.