Join 联接2个表并在LINQ中返回多行

Join 联接2个表并在LINQ中返回多行,join,Join,我们有两张桌子。设备桌子和图片设备桌子。 我想表中的设备的详细信息,和第二表照片返回设备。 设备表:设备名称、设备标题、注释 图片设备表:PicID、EqID、PictureName 功能是: public List<object> Return_Equipment(long GroupCode) { var td = from s in Entity.Equipment_Table join r in Entity.Pic

我们有两张桌子。设备桌子和图片设备桌子。 我想表中的设备的详细信息,和第二表照片返回设备。 设备表:设备名称、设备标题、注释 图片设备表:PicID、EqID、PictureName 功能是:

public List<object> Return_Equipment(long GroupCode)
    {
        var td = from s in Entity.Equipment_Table 
                 join r in Entity.PicturesOfEquipment_Table on s.EqID equals r.EqID 
                 where s.ServiceGroupCode == GroupCode
                 select s;


        return td.ToList();
    }
但是td.ToList会出现错误。 无法将类型“System.Collections.Generic.List”隐式转换为“System.Collections.Generic.List”

public List<object> Return_Equipment(long GroupCode)
    {
        var td = from s in Entity.Equipment_Table 
                 join r in Entity.PicturesOfEquipment_Table on s.EqID equals r.EqID 
                 where s.ServiceGroupCode == GroupCode
                 select s;


        return td;
    }