VB.NET and lambda expressions

  • Thread starter Thread starter RBScheer
  • Start date Start date
R

RBScheer

Hi.

I am experimenting with Linq to entities and lambda expressions and
have a doubt on the usage of the Select extension. I can select a
single field based on a lambda expression, but could not find how to
select more than one field:

Sub Main
Dim query = (From atItem In Resume Select atItem)

Dim intDate = query.Where(Function(a) a.TIB = 211545 And a.Type = "M")
_
.select(function(j) j.Name)
End Sub

This brings me the Name field, but how do I select more that one field
using this lambda expression?

Regards,
Robert Scheer
 
Back
Top