Is there any way to detect changes made in last ObjectContext.SaveChanges()
method?
I track the changes myself like update delete and insert of objects, but when there is foreign key relationship, entity framework deletes child references automatically and here I loose tracking.
So for example if I delete a student I track that I have deleted one student.
But when I delete class, it automatically deletes all the students from the class as I have foreign key relationship for them. The problem is I can only track here that one class is deleted but not how many students in the class were deleted.
One way is to count the students of class before deleting it, but that is an unnecessary trip to database.
Is there any other way?