Open Closed

Permanent delete an entity inheriting ISoftDelete #5139


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)
  • 0
    yekalkan created

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