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

Applied Tenant Interface caused no Results returned #3303


User avatar
0
llarouche created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.