Hi all,
I'm looking for the best (read: most perfomant) way to create a copy of an object graph. For instance, say I have an object A, that has a reference to a B and a C, and it also has a collection of Ds, and Ds have references to Es.
How can I get a copy of all of the database records, but all with new ids. ? In otherwords, a deep clone - the new instance of A should point to a new B, a new C, and a new collection should be created of new Ds with new Es. All records should be identical, but with new Ids.
thanks,
james
|