Base solution for your next web application
Open Closed

softdelete #1376


User avatar
0
iamnish created

1 -How to reverse softdelete? 2- is there anyway that certain user like admin can see soft delete and and reverse it 3- how to force permanent delete in certain condition


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you want to show soft deleted records to some specific users, you can disable soft delete filter. Filter name is AbpDataFilters.SoftDelete. You can add a permission like "CanSeeSoftDeletedEntities", and according to this permission, disable AbpDataFilters.SoftDelete filter. <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Data-Filters#DocDisableFilters">http://www.aspnetboilerplate.com/Pages/ ... bleFilters</a>

    For reverting soft delete and permenant delete, you can use custom repository and execute sql in it. <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#DocCustomRepositoryMethods">http://www.aspnetboilerplate.com/Pages/ ... oryMethods</a>