VB.NET and lambda expressions




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?

Robert Scheer

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question