Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lambda select

Status
Not open for further replies.

Badgers

Programmer
Nov 20, 2001
187
US
Hi

I'm using some lambda for sql access - does anyone know how to do a select statement, I have the following below, but the select don't work.

IEnumerable<Table1> agentTeamFacts = entities.Table1
.Where(
e => e.InstanceID.Equals(Id))
.OrderBy(a => a.ID)
.ThenBy(a => a.Date)
.Select(a => new {a.ROWID, a.PID, a.nDate.Value});

Thanks
 
how does it not work? doesn't compile? incorrect results? throws exception?

usually when developers talk of linq and sql they are either referring to Linq2Sql or LinqD. LinqD was a buzz word when linq first hit the scene. Is this what you are referring to?

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top