Print Page | Close Window

detect and getting changed record

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=761
Printed Date: 22-Oct-2025 at 2:09pm


Topic: detect and getting changed record
Posted By: erturkcevik
Subject: detect and getting changed record
Date Posted: 09-Apr-2008 at 8:31am
Hi;
 
How to I detect and getting changed and deleted and adding record?
For Example
 For each "changed" OrderDetail record
   process...
 For each "deleted" OrderDetail record
   process...
 For each "added" OrderDetail record
   process...
 
 
Best Regards
 



Replies:
Posted By: davidklitzke
Date Posted: 09-Apr-2008 at 10:10am

For modifications, use the OnPropertyChanged event,

The PersistenceManager does not fire events during CreateEntity() or Delete(). However there are events raised by the underlying DataTable class that you can register for, namely TableNewRow and RowDeleting. You always have access to the underlying DataTable via PersistenceManager.GetTable().




Print Page | Close Window