Last post Apr 05, 2016 10:06 AM by huiling123
Apr 04, 2016 09:44 AM|Adam-M|LINK
I've created an MVC 5 EF6 web app connecting to an SQL database which performs crud operations. I need to implement the ability to clone a record. I've got a table containing the master records which link to other tables. So I need to clone a record and
it's data in one table, then also clone all records in another table which link back to it using the ID.
So create a duplicate of record ID 26 in table 1 for example, then also duplicate everything in table 2 with computerid == 26 but but the change the value of 26 to reference the new record.
Searching for this in google tends to return EF6 issues for returning duplicate records. I'd appreciate any help.
Thanks in advance
Apr 05, 2016 10:06 AM|huiling123|LINK
could you please describe your issue in detailed. according to your description, I'm not sure what your issue, clone the records to another table or current table?
or clone a object from database to another object. please provide some code snippet and error message if it has.