I recently was working on joining two objects in VB.
processed_files, which is an ObjectQuery(of T)
list_of_file_ids, which is a List(of T.ID)
If I do:
Dim test = (From pf In processed_files _<br/>
Join fIDs In list_of_file_ids _<br/>
On pf.ID Equals fIDs _<br/>
Then I get the response:
"Unable to create a constant value of type 'System.Collections.Generic.IEnumerable`1'. Only primitive types ('such as Int32, String, and Guid') are supported in this context."
However, If I just switch the order of the List and the ObjectQuery, then it works!
Dim test = (From fIDs In list_of_file_ids _
Join pf In processed_files _
On pf.ID Equals fIDs _
Then it works!
I'm not quite sure why this is, but hopefully it will help others out there.
PS. This is my fir
View Complete Post