查询的数据中包含已删除的数据
using (var uow = UnitOfWorkManager.Begin(System.Transactions.TransactionScopeOption.RequiresNew))
{
using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.SoftDelete))
{
sps = _salaryPayingRepository.GetAll().Where(p => args.SalaryPayingIds.Contains(p.Id)).ToList();
}
uow.Complete();
}
用到了这个:
_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.SoftDelete)

浙公网安备 33010602011771号