I’m trying to compare the data of two datatables using a linq query. However I ended up getting end of expression expected error. I cross checked the entire linq however I couldn’t find any mistakes in it.
Any leads or help is much appreciated.
@Karthik23 write the condition in the same line
How about the following?
(From row1 In dtInput.AsEnumerable()
Join row2 In dt2.AsEnumerable()
On row1("Segment") Equals row2("Segment") And row1("Element") Equals row2("Element") And row1("Record") Equals row2("Record") And row1("Field") Equals row2("Field") And row1("Mapping comments") Equals row2("Mapping comments")
Remember change the dt variables
@Mohammad_Irfan , Thank you it worked.
@fernando_zuluaga , Thank you for the updated query.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.