摘要:
之前一直被一个Linq问题困扰,数据分组后就会变成IGrouping形式,但是返回的需要的是 IQueryable,现在终于知道怎么转了。 query = from c in query group c by c.Id into cGroup orderby cGroup.Key select cG 阅读全文
摘要:
var categoriesEntities = new List<CategoryEntity>(); var allCategories = GetCategories(); var postCategoryMappings = _postCategoryMapping.Where(m => m 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Xml; namespace EasyFrame.Common{ public class XmlHelper { #region 增、删、改操作 阅读全文