July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Same as you would do with other LINQ providers, you can build complex queries taking advantage of anonymous types in LINQ to DataSets. The following code shows how you can join information from the Orders and Order_Details tables retrieving information on order details for each order made by the given customer. Projection is accomplished by generating anonymous types:
Private Sub QueryOrderDetails(CustomerID As String) Dim query = From ord In NwindDataSet.Orders Where ord.CustomerID = CustomerID Join det In NwindDataSet.Order_Details On det.OrderID Equals ord.OrderID Select New With {.OrderID = ord.OrderID, ...
Read now
Unlock full access