I'm just not understanding on how to create a lamdba expression instead of using a regular comprehension linq queries. All of the examples i see are not query a database using linq to sql. i want to able to construct a lambda expression that get my the orders from the northwind database where the country equals "us". I know how to construct this using the standard linq query, but just not using lambdas in vb.net. Any examples would be great..
+2
A:
Not sure of the exact northwind structure but something like this probably:
Dim dc as new NorthwindDataConext()
Dim usOrders as List(of Order) = dc.Orders.Where(Function(o) o.Country = "US").ToList();
John Boker
2010-01-30 16:40:20
That did the trick!!! thanks
Michael
2010-01-30 17:05:23