Base solution for your next web application
Open Closed

Search in Soft-Delete Users #4811


User avatar
0
rvanwoezik created

Is it possible to search in soft-deleted users only?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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

    Yes. See the documentation on Data Filters.

    using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.SoftDelete))
    {
        var softDeletedUsers = _userRepository.GetAll().Where(u => u.IsDeleted);
    
        // ...
    }
    
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    rvanwoezik created

    Thnx! A RTFM situation!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)