Dynamic Linq 를 서브 (컬렉션이 아닌) 오브젝트를 투영하는 방법을 알고 있습니다.
"new(new(CustomerStat.ID) as CustomerStat)", where CustomerStat is a non-collection object.
"new(LocationId, new(Employees.Select(FirstName)) as Employees)"
이름.
즉, 다음의 DynamicLinq 버전을 원합니다.
var locations = (new CompanyContext().Locations.
Select(l => new {l.ID, Emps = l.Employees.Select(e=>e.FirstName)}));
감사!