I don't want to perform physical deletes in my model--I want all the deletes to be soft deletes. I am not looking for the model to do this automatically--I just want to be able to override the delete method. What is the best way to do this?
I found a post related to this here
. There are a few differences for the delete as opposed to the update--I want to call the SaveChanges() from the Delete() instead of the base.Delete(). Will that be a problem at all? I am assuming I just need to set the soft delete field for each "entity" that was passed to the delete method. Any hints on logic to do this, i.e. the objects that I should be executing the commands on? There does not seem to be a lot of example code for this since I am basically overriding the core functionality of the product.
Another route might be to use stored procs for the CUD operations. It does not look like there is a way to only do the delete operations, and I would rather not code all three just to override the deletes.
Finally, in the rlinq file (when viewed as text) I noticed the following on each entity:
Is there some easy way to use this to override the Delete()?
Thanks very much for your help! OpenAccess/DataAccess is an outstanding tool!