Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Permanent delete an entity inheriting ISoftDelete #5139


User avatar
0
ajayak created

Hi,

I have a special case in which I want to completely delete an entity that is marked as ISoftDelete.

I tried this but it does not work:

using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.SoftDelete))
            {
                var tenant = await TenantManager.GetByIdAsync(input.Id);
                await TenantManager.DeleteAsync(tenant);
            }

1 Answer(s)
  • User Avatar
    0
    yekalkan created

    see <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/550">https://github.com/aspnetboilerplate/as ... issues/550</a>