There is this example from MS documentation:
A simple little example, but for me, the Into keyword is always an error. I have tried a very simple example such as this:Code:Dim queryResults = From cust In customers Group Join ord In orders On cust.CustomerID Equals ord.CustomerID Into CustomerOrders = Group, OrderTotal = Sum(ord.Amount) Select cust.CompanyName, cust.CustomerID, CustomerOrders, OrderTotal
which is as simple as possible, but 'into' is underlined with the error End of Statement Expected. Normally, this means that I overlooked something, but I sure can't see what it would be.Code:Dim store1 As IEnumerable(Of Guid) Dim store2 As IEnumerable(Of Guid) Dim res=From gd In store1 Join gd2 In store2 On gd Equals gd2 into
What am I missing?






Reply With Quote