Below is my LINQ query:
Dim JoinedResult = From t1 In temp.AsEnumerable() _
Group Join t2 In tbCity.AsEnumerable() _
On t1.Field(Of String)("City") Equals t2.Field(Of String)("city_name") _
Into RightTableResults = Group _
From t In RightTableResults.DefaultIfEmpty
Select New With
{
.ID = t1.Item("ID"),
.CID = If(t Is Nothing,
1,
t.Item("city_gid"))
}
How can I copy values from "JoinedResult" to a datatable?
Note:
- I'm not getting
JoinedResult.CopyToDataTable()
- I don't want to use a loop