How can I make my own delete method to prevent that the data really gets deleted?
I want to set a datetime field when it gets deleted instead of a normal delete.
I read about overriding the submitchanges function, but I don’t get it to work
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Handle
SavingChanges, go through the deleted items in the context, change their state to modified, and modify the field in question.