开发者

asp.net mvc linq checking list for iqueyable

  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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜