我在下面有这个查询。之后,我想用结果填充一个列表。我应该怎么做 ?
var query = from cust in context.Customer
join city in context.Cities on cust.id_city equals city.id
join state in context.State on city.id_state equals state.id
join reg in context.Region on state.id_region equals reg.id
select new
{
nameCust = cust.name,
nameCity = city.name,
nameState = state.name,
nameRegion = reg.name
};