Compare dataset or a better idea

后端 未结 3 1953
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 00:39

How do I compare values of one data set from another.

1st dataset [\"proper records\"] is coming from SQL Server with column names

          


        
3条回答
  •  南方客
    南方客 (楼主)
    2020-12-20 01:13

    To get all the records from 2nd dataset that match the records from the 1st dataset would be something like this:

    IEnumerable list3 = list2.Where(l2=>list1.Contains(l1=>l1.subsNumber == l2.subsNumber));

    Something along those lines!

提交回复
热议问题