28
Views
2
Comments
Solved
How to remove a Record using "is visible" attribute?
Question
Someone can tell me how  can I delete a record without making a "delete" to the database, but using a "is Visible" attribute from an Entity. Thank you!
2024-04-24 19-28-09
Justin Babel
Solution
Vitor,

You can always create an 'IsActive' attribute on each of your entities, and perform a soft delete by updating the record's 'IsActive' to false by creating a delete action and updating, instead of directly calling the database delete function. Also making sure that all of your queries filter for 'IsActive' is true.

This way you will keep all of your data in the database but to the end user, it will appear that the record is deleted.
UserImage.jpg
Vítor Gonçalves
it worked!!! thank you so much!!!
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.