开发者

asp.net mvc linq checking list for iqueyable

开发者 https://www.devze.com 2023-02-10 04:39 出处:网络
I have a no. of records being inserted in a List<> . I have IQueryable returning more then one record
  1. I have a no. of records being inserted in a List<> .
  2. I have IQueryable returning more then one record
  3. I want to check whether t开发者_StackOverflowhe records IQueryable returns are present in the list or not?

is there any way in linq i can do that?


If you are talking about Union of both list of records that u can use "Union()" of "Intersect()"(if you are interested in intersection), if you are talking about Left or Right joins on these lists, the you should look at Left Join, Right Join Using LINQ

Hope this shall help.

0

精彩评论

暂无评论...
验证码 换一张
取 消