0

any one please clarify, how to copy one column data to another column with in the same table using linq.

Thank you, Siva Kumar goru.

Siva kumar Goru
  • 13
  • 1
  • 1
  • 8

1 Answers1

2

You can simply do that without LINQ (which purpose is quering data, not modifying)

foreach(DataRow row in table.Rows)
    row["AnotherColumn"] = row["OneColumn"];
Sergey Berezovskiy
  • 232,247
  • 41
  • 429
  • 459
  • How do I create the object 'table'? I am using enityframework and sql server 2008. And then I will need to update it back to there server after doing the copy. – GMan Aug 18 '15 at 05:20