locked
EF6 Clone Records RRS feed

  • Question

  • User-173651909 posted

    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
    Adam

    Monday, April 4, 2016 9:44 AM

All replies

  • User1009646345 posted

    Hi,

    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.

    Tuesday, April 5, 2016 10:06 AM