var emp = (from a in AdventureWorks.PersonPhones
join b in AdventureWorks.People
on a.BusinessEntityID equals b.BusinessEntityID
join c in AdventureWorks.PhoneNumberTypes
on a.PhoneNumberTypeID equals c.PhoneNumberTypeID
select new { a, b, c }).OrderBy(n => n.c.Name);
我有这个 linq 查询,它选择匿名类型类中的值。我只想将此查询传递给 somemethod() 并在该方法中存储在“emp”中的该查询上调用 toList()。谢谢!