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

How to query database without tenant filter #5807


User avatar
0
tugrulkarakaya created

I need a select query with where conditions to query without having a tenant filter. in the other way to give an example; How to get all products from all tenants (not from Host account from all tenants) in 1 query?


2 Answer(s)
  • User Avatar
    0
    tugrulkarakaya created

    it seems using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.SoftDelete)) will workç I am working on it now. I will let you know. if there is another solution please let me know:)

  • User Avatar
    0
    alper created
    Support Team
    using(_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant)){
    //... get all records without tenant filter ...
    }
    
    • https://aspnetboilerplate.com/Pages/Documents/Data-Filters#disable-filters