3- Entity Data Model LINQ-Select

3.1Select-- selection and projection
objects responsible for producing the Select clause LINQ query results statement, in addition to objects of a single class or complete a particular attribute member, with the LINQ query selected set to create a whole new set of types, in addition to select, but also there is a selectMany, must be used with multi-form clause.

1.select

 

If you do not want to select syntax set clause is too complex statements can be further creates a new object program code into methods

 

2.selectMany

Example 1:

 

Example 2:

Example 3:

Guess you like

Origin www.cnblogs.com/hcy-zyy/p/11124949.html