I have a WPF Application with Entity Data Model.
I would like to set IsDeleted flag to true when entity is deleted instead of deleting from database.
I read many thread here and alot of threads are suggesting to use Modification Function Mapping with the use of conditional mapping.
I used conditional mapping for filtering IsDeleted = true rows and works great.
However, While I'd like to use Modification Function Mapping for just Delete Function, the program give me error, trying to find Function for Insert and Update as well on SaveChanges() method.
I only specified for Delete Function. Is there a way to use only Delete Modification Function and not all Insert, Update, Delete?
If not, is there any other ways that can achieve this? P.S. I read about using Instead Of Delete trigger. However, I would like to avoid it, if possible, since we are developing the program for a mobile application and triggers might slow down the application.
Thank you in advance!