Is there a way to notify an object that it is going to be saved? When I call context.SaveChanges(), I need a way for each one of my changed objects to know that it's about to be saved so it can preform some tasks.
1 Answer, 1 is accepted
0
Damyan Bogoev
Telerik team
answered on 25 Nov 2010, 07:44 PM
Hello David Ribb,
You could achieve this goal by using the ITracking interface’s events. Helpful information regarding how to do that can be found here.
But firstly you should expose the underlying IObjectScope instance in a partial class of your generated context class: