Я получаю эту ошибку: Could not format node 'Column' for execution as SQL
Когда я пытаюсь создать анонимный тип:
select new
{
NounTypeName = nt.Name,
Attributes =
(
from a in nt.NounTypeAttributes
group a by a.Attribute into g
select new {
NounTypeId = nt.NounTypeId,
Key = g.Key + " (" + g.Count() + ")",
NounTypeAttributeId =
(from i in g select i.NounTypeAttributeId)
.Take(1).SingleOrDefault(), Count = g.Count()
}
)
});
Проблема возникает, когда я добавляю свойство NounTypeId
ванонимный тип.