views:

66

answers:

1

I'm using Linq from ASP.NET (C#); and I'm trying to add a 'clone record' function. This question - allows copying of a single record from a single table; how can I expand it to include associated records in tables linked through foreign keys?

A: 

In the end I went with CopyDataMembers, suggested elsewhere on this site, and then looped through each entry in each of the linked tables and copied them individually. Not ideal by far, but it meets the requirements and the deadline.