Entity framework 4 EF 4.0与ObjectQuery的内部联接<;对象>;

Entity framework 4 EF 4.0与ObjectQuery的内部联接<;对象>;,entity-framework-4,Entity Framework 4,我在EF4.0中找不到如何使用实体SQL编写ObjectQuery内部联接的示例 可能会有一些帮助吗?这里是一个例子,但是如果你告诉我们你想要完成什么,if可能会更有用 示例(假设人员和宠物是LINQ到SQL类): 公共阶层人士{ 公共int ID; 公共名称; } 公营宠物{ 公共int ID; 公共名称; 公共所有者; } ObjectQuery-people=null; ObjectQuery=null; var query=people.Join(宠物、, person=>person.

我在EF4.0中找不到如何使用实体SQL编写ObjectQuery内部联接的示例
可能会有一些帮助吗?

这里是一个例子,但是如果你告诉我们你想要完成什么,if可能会更有用

示例(假设人员和宠物是LINQ到SQL类):

公共阶层人士{
公共int ID;
公共名称;
}
公营宠物{
公共int ID;
公共名称;
公共所有者;
}
ObjectQuery-people=null;
ObjectQuery=null;
var query=people.Join(宠物、,
person=>person.ID,
宠物=>pet.Owner,
(人、宠物)=>
新{
OwnerName=person.Name,
Pet=Pet.Name
}
);
public class People{
     public int ID;
     public int Name;
}
public class Pets{
    public int ID;
    public int Name;
    public int Owner;

 }


ObjectQuery<People> people = null;
ObjectQuery<Pets> pets = null;   

var query = people.Join(pets,
               person => person.ID,
               pet => pet.Owner,
               (person, pet) =>
                   new { 
                        OwnerName = person.Name,
                        Pet = pet.Name
                   }
 );