Host Tenant
Hello, I want to apply this to my project, but I want to use the tenants from the database. For this, I need to enter the admin panel and in this case the tenant will be null. I would like to know how database calls are for null tenants. Could you explain to me ?
I have a similar question. I'm currently getting an error related to the IsMultiTenant function where it adds the check for TenantInfo.Id and if I have no tenant selected and TenantInfo is null,
I get a null error like this: System.NullReferenceException: Object reference not set to an instance of an object. at lambda_method4(Closure, QueryContext)
Hi, if you are using the MultiTenantDbContext then I recommend creating the context yourself with a dummy tenant and using IgnoreGlobalFilters on your queries to bypass any filtering.
I am working on a better solution for these scenarios.
My solution was... create an admin console outside of the multitenant app.