Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Possible to query across all tenants #5294


User avatar
0
sedulen created

Is it possible to query across all tenants? In our implementation, we have all tenants stored in the same database and we wanted to create a Host view that retrieves data across all tenants.

Thanks


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can disable the IMustHaveTenant and IMayHaveTenant with a using statement filters after switching to the host.

    detailed explanation: [https://www.aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#switching-between-host-and-tenants])