私は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
})
これは、結合句の式の型が正しくないため、構文エラーを示しています。助けてください。