Hi,
I put declared my account class with all properties: Name, BillDate......
in my account data layer accountDALC I implement the updateAccount function that updates the database with the modified account object.
The thing is that I want to call updateAccount function only if the account object has been changed by the user since the last time I updated the database.
I guess in my account class, whenever I update the object, I need to put a mecanism saying that the account object has been changed,so that i can take that into consideration. And when the user clicks Save button. If the acount has changed then I call updateAccount function otherwise I do nothing.
So how do I implement that. what s a good practice for that please.
Let me also know if there are any articles for this pls
Thanks for your help.
.NET Development14
|