摘要: var gridModel = new DataSourceResult { Data = customers.Select(PrepareCustomerModelForList), Total = customers.TotalCount }; protected virtual Custome 阅读全文
posted @ 2017-11-13 18:24 !opts 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 之前一直被一个Linq问题困扰,数据分组后就会变成IGrouping形式,但是返回的需要的是 IQueryable,现在终于知道怎么转了。 query = from c in query group c by c.Id into cGroup orderby cGroup.Key select cG 阅读全文
posted @ 2017-11-13 17:03 !opts 阅读(848) 评论(0) 推荐(0) 编辑