Is it possible with Linq to copy data from specific column of a Datatable say InputDT to specific column of Datatable OutputDT which also has a condition needs to be checked before copying. Condition is to check if data we are copying from InputDT to specific cell of OutputDT is already present in OutputDT or not. If present, overwrite the data, else append below.I tried the query mentioned below, no luck.
(From a In OutputDT.AsEnumerable() Select InputDT.LoadDataRow (new Object() {If(a.Field(Of String)(“PHONE NO”)=not a.Field(Of String)(“PHONE NO”), a.Field(Of String)(“PHONE NO”),a.Field(Of String)(“PHONE NO”)) },False)).CopyToDataTable