Getting sql timestamp back into the object

Jul 4, 2007 at 5:54 PM
Edited Jul 4, 2007 at 5:58 PM
in my generated service, i pass in an "asset" object and return an asset object for updating. I want the asset to come in, go into the repository, update, then come back with the most current values (Guid, timestamp, and anything else that triggers might update)

do i need to modify the generated code that already exists (i genereated the sprocs via automation and generated the repository classes via automation).

or do i just need to call the update method, then call the get by Primary key method to replace my asset reference to send back to the client?

which have you all implemented succesfully and consider best practice in that regard when using the automation.

my asset has child object collections of Details, Notes, and Contracts.
What would be a good way to track which detail, note, and contract changes i've made (including deletes) when sending them along with the asset for "Saving" which becomes some logic having to decide what to be saved, added or deleted.