Friday, July 10, 2009

LINQ SQL example


This SQL statement ...

Dim strSQL as String = _
"SELECT Name, CustomerID FROM Customers"



... becomes this LINQ coding ...

Dim customers = From cust In Customers _
Select cust.Name, cust.CustomerID

No comments: