Hi, Please help with the following issue. I have a linq query which is not working well. I would like it to delete any duplicate transactions by checking the reference number and amount. Find an example below.
dt1.AsEnumerable().Where(Function® Not r(0).ToString.Equals(r(0).ToString) And r(1).ToString.Equals(r(2).ToString)).CopyToDataTable()
I am trying to delete the rows that have the same reference and that also have the same debit and credit amount. in the example above, ONLY row 1 and row 2 would be deleted as the reference and the debit amount is the same as the credit amount. Thank you