I have two data tables with similar structure (Table A and Table B). I want to compare both the datatables with column name Unique and Table A should only have data which is not found in Table B. Please see examples below, Column1 - 326 and 60 in Table A should be the final output.
(From rowA In DT_1.AsEnumerable()
Where Not DT_2.AsEnumerable().Any(Function(rowB) rowB.Field(Of String)("Unique") = rowA.Field(Of String)("Unique"))
Select rowA).CopyToDataTable()
Compiler error(s) encountered processing expression “dt_1.AsEnumerable().ExceptBy(dt_2.AsEnumerable().Select(Function(a) a(“Unique”).ToString),Function(b) b(“Unique”).tostring).CopyToDataTable”.
‘ExceptBy’ is not a member of ‘System.Data.EnumerableRowCollection(Of System.Data.DataRow)’.