JonPSmith / AuthPermissions.AspNetCore

This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
https://www.thereformedprogrammer.net/finally-a-library-that-improves-role-authorization-in-asp-net-core/
MIT License
788 stars 159 forks source link

Soft Delete #98

Closed bahaAbualkibash closed 10 months ago

bahaAbualkibash commented 10 months ago

Hi there,

I'm currently using this library and looking to implement a soft delete functionality instead of hard delete tenants/users/etc..., and I'm unsure about the best approach to achieve this within the library.

Could you provide guidance or best practices on how to implement soft delete functionality? Any code snippets, recommended practices, or pointers to relevant resources would be immensely helpful.

Thank you in advance for your assistance :)

JonPSmith commented 10 months ago

Hi @bahaAbualkibash,

I actually built a library called EfCore.SoftDeleteServices which handles soft-delete and a multi-tenant key. The wiki holds documentation, plus links on the right to two articles and a EF Core standup where talked about soft delete with tenants (about 35 mins in).

Enjoy.