Open Closed

Share entity among tenants #7274

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)
  • 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().;                
  • 0
    ectabyte created

    Got it. Thanks