table 1
table 2
Result
i need to match table 1 with table 2 if uuid match with guid I need data from table 2 like panelName,Status can anyone help me how to achieve by linq
I am using this two linq but not able to achieve that
“(From d In dtData2.AsEnumerable
Let check = dtData1.AsEnumerable.Where(Function (r) r(0).toString.Trim.Equals(d(0).toString.Trim)).toList
Let c2 = If(check.Count() > 0, check(0)(0), “”)
Let ra = {d(0),d(1),c2}
Select dtResult.Rows.Add(ra)).CopyToDataTable”
“(From a In dt1.AsEnumerable() Join b In dt2.AsEnumerable() On a.Item(“uuid”) Equals b.item(“GUID”) Select dt3.LoadDataRow (new Object() { a.Field(Of Double)(“uuid”),b.Field(Of String)(“PanelName”),b.Field(Of String)(“Status”)},False)).CopyToDataTable”—this is giveing me error like string not cast double
please help me with other solution of correct me if I am wrong somewhere