Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
Hi Rene-4203,
The SaveChanges method return the number of rows affected.
When you set the deleted flag, it means this row was changed.
So the number returned will be affected by the number of deleted flags you set.
If I misunderstand what you mean, please correct me and explain it in detail or provide some relevant code snippets.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.