Here is my data model:
SubmissionEntity
+SubmissionCustomerEntityCollection
+SubmissionDsgroupEntityCollection
Each SubmissionCustomerEntity contains
+ CustomerEntity
+ LoanEntityCollection
+ and so on...
Each SubmissionDsgroupEntity contains
+ DsgroupEntity
+ SumaryTableEntity
The application have the features to copy data from one SubmissionEntity to another SubmissionEntity. Let's say copy data from submissionA to submissionB.
I loaded all data from submissionA and now it's available to access at
- submissionA.SubmissionCustomers
- submissionA.SubmissionDsgroups
I tried to clone (using the source from http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7568 ) each items in two above collections and add them to the submissionB. However, when I save the submissionB, the entire data that belongs to submissionA is disappeared. They are actually moved to the submissionB.
It would be nice if someone can give me a suggest how to do it, or even work around to get it done?
Is there anyway to save an existing Entity to new records?
Thanks,
Phong