我有一个 linq 查询
from elements in context.Catalog_Element
join elementattributevalues in context.Catalog_ElementAttributeValue
on elements.ElementID equals elementattributevalues.ElementID
join allowedsubcomponents in context.Catalog_AllowedSubComponents
on new { AttributeValueID = elementattributevalues.AttributeValueID,
ElementClassID = elements.ElementClassID }
equals new { AttributeValueID = allowedsubcomponents.AttributeValueIDFilter,
ElementClassID = allowedsubcomponents.ClassIDFilter }
where allowedsubcomponents.ElementID ==
new Guid("8c139311-f7cd-4961-a8bb-0d8dd923049e")
select new
{
elements.ElementNumber,
elements.Description
})
这向我显示了一个语法错误,因为 Join 子句中的表达式类型不正确。请帮忙。