dkilby
asked on
Linq To SQL + Move Data From One Table To Another
I would like to move a row of data from one table(tableA) to another table (tableB) and then once it is moved delete the row from tableA
I would like to use Linq To SQL if possible.
Is this possible and if so how ?
Thanks
I would like to use Linq To SQL if possible.
Is this possible and if so how ?
Thanks
ASKER
Thank you for the info regarding Linq To SQL, will keep that in mind for any new projects.
I would like for this project to finish it off using Linq To SQL - is it possible to make the movement of a row with Linq To SQL ?
I would like for this project to finish it off using Linq To SQL - is it possible to make the movement of a row with Linq To SQL ?
Are the two tables, TableA and TableB, have the exact same schema?
ASKER
yes both tables have the same schema
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great, worked perfect thank you very much
Not a problem dkilby, glad I was able to help.
Yes it can be done. But first of all Microsoft's recommendations for new projects is to use Linq to Entity Framework and not Linq to SQL. The reason for this is that that are not adding new features to Linq to SQL and only doing bug fixes. Using Linq to Entity Framework it can be done as follows
Open in new window