abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.73k stars 3.41k forks source link

Design a system to allow to work with the soft-deleted entities #4081

Open hikalkan opened 4 years ago

hikalkan commented 4 years ago

My thoughts:

This is very easy way to make the UI working with soft delete entities. But the remaining system should suppose use cases, like undelete an entity. For example;

Actually, anyone can implement it like that for their applications. But we can add this included in the framework level and also implement this for the pre-built modules.

Any other suggestion would be appreciated.

gdlcf88 commented 4 years ago

We should relate this to a permission, surely.

Hello @hikalkan, maybe different permissions for different entities, would that be so?

hikalkan commented 4 years ago

Yes thats possible and would be useful

davidzwa commented 3 years ago

Undelete action would make a lot of sense to add to a repository with an interface and base class implementation, although it is pretty simple to implement ourselves.

Currently ISoftDelete is quite lonely without restoration out of the box haha. Is there a thought behind this or just a todo?

MernaAlbert commented 2 years ago

Hello @hikalkan , Is there any new feature added in abp for undelete action for entities who had interface ISoftDelete?