以下是否有相应的内容?
// convert model to dynamic (this is how the model is coming in)
IEnumerable<dynamic> dynmodel = (IEnumerable < dynamic >)Model;
// dynamic lambda ???
string col = "x.Name";
var grid = new WebGrid(source: dynmodel.OrderBy(x => @col)); // Doesn't resolve but need an equivalent here!!!
答案 0 :(得分:1)