.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

In ObjectQuery, what does "it." stands for?

Posted By:      Posted Date: October 24, 2010    Points: 0   Category :ASP.Net

Hello all,

I am new to EDM. I was trying to figure out what does "it." stands for in Object Query. I search a bit, but was unlucky.


ObjectQuery<Department> departmentQuery = schoolContext.Departments.Include("Courses").OrderBy("it.Name");


Thanks in advance

View Complete Post

More Related Resource Links

Joining a List(of T) with an ObjectQuery


Hi all,

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/>
         Select pf)


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 _
         Select pf)

Then it works!

I'm not quite sure why this is, but hopefully it will help others out there.




PS. This is my fir

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend