Hello,
I turned on Multi-Tenancy and implemented the Interface on one Entity. I then ran the software and I go no results back from a list view where I was getting results prior to having the filter applied. I then removed the interface IMustHaveTenant and then applied a where clause to my linq query (where tenantId = GetCurrentTenant().Id) and I did get results I was expecting back.
Any ideas why adding the interface would not return any results for a entity that I know has records for the specific tenant I was testing for.
Please let me know.
Thanks,
Leonard (Dino) Larouche
1 Answer(s)
-
0
Hi,
When you implement IMustHaveTenant, ABP should filter only by TenantId like you did manully using linq. You can compare both queries using sql server profiler and you can understand the problem.
Thanks.