0
如何在選擇後添加orderby?查詢不投影oderby?
//what I have now
string country_list = string.Join(":", ctx.Countries.Select(a => a.CountryName).ToArray());
return country_list;
//what I want to do, but the orderby doesnt see the projections
string country_list = string.Join(":", ctx.Countries.Select(a => a.CountryName).OrderBy(b => b.StateId).ToArray());
return country_list;
與B中的投影是心不是工作
我知道它必須是簡單的東西,謝謝! – bitshift