Base solution for your next web application
Open Closed

Share entity among tenants #7274


User avatar
0
ectabyte created

Hi! I want to share one or more entities among tenants. The host has to create and edit these entities and they will be read-only for tenants. Thanks!


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can disable the multi-tenant filter to query these entities in the method used by the tenant.

    Disabling the filter should be to keep the minimum scope.

    using (_unitOfWorkManager.Current.DisableFilter())
    {
    	var entites = _entityRepository.GetAllL().;                
    }
    
  • User Avatar
    0
    ectabyte created

    Got it. Thanks