Finbuckle.MultiTenant icon indicating copy to clipboard operation
Finbuckle.MultiTenant copied to clipboard

Host Tenant

Open serkanaslan34 opened this issue 3 years ago • 4 comments

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 ?

serkanaslan34 avatar Apr 08 '23 16:04 serkanaslan34

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)

johndcollins avatar Apr 12 '23 23:04 johndcollins

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.

AndrewTriesToCode avatar Jul 13 '23 00:07 AndrewTriesToCode

My solution was... create an admin console outside of the multitenant app.

laguer71 avatar Aug 10 '23 02:08 laguer71