Linq 'into' keyword confusion

前端 未结 3 1299
走了就别回头了
走了就别回头了 2020-12-13 05:31

I was looking at a co-workers Linq query, shown below (the query executes correctly):

from ea in EquipmentApplication
join erl in EquipmentRoutingLocation on         


        
3条回答
  •  情话喂你
    2020-12-13 05:32

    When used with the select keyword, into will end the scope.
    When used with the join keyword, into will add a variable containing all of the matching items from the join. (This is called a Group Join)

提交回复
热议问题