This question is locked. New answers and comments are not allowed.
I want to set a LastUpdated property on my objects whenever they change but when I do this using the change tracking api, I end up with recursive calls that eventually cause a stack overflow. Is there a way to temporarily turn off change tracking or some other way to accomplish what I want to do? Here's a look at the code that doesn't work.
static void Tracking_Changed(object sender, ChangeEventArgs e) |
{ |
IDomainObject obj = e.PersistentObject as IDomainObject; |
if (obj != null) |
{ |
obj.LastUpdated = DateTime.Now; |
} |
} |