sarpay-echonos
11/7/2019 - 6:39 AM

UOW

Method 1 (requires Injection)

using Abp.Domain.Uow;

private readonly IUnitOfWorkManager _unitOfWorkManager;

public RelationshipsAppService(IUnitOfWorkManager unitOfWorkManager) {
  _unitOfWorkManager = unitOfWorkManager;
}

using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant, AbpDataFilters.MustHaveTenant)) {
  
}

Method 2

using Abp.Domain.Uow;

using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant, AbpDataFilters.MustHaveTenant)) {
  
}