随笔分类 -  Linq

EF 使用SQL查询
摘要:public List UserInfo_SearchList(ref int total, int page, int rows, string userId, string userName){SqlParameter[] sqlParam = new SqlParameter[1];strin... 阅读全文
posted @ 2015-11-19 22:34 zishen 阅读(2266) 评论(0) 推荐(0)
linq里的select和selectmany操作
摘要:Select()和SelectMany()的工作都是依据源值生成一个或多个结果值。Select()为每个源值生成一个结果值。因此,总体结果是一个与源集合具有相同元素数目的集合。与之相反,SelectMany()将生成单一总体结果,其中包含来自每个源值的串联子集合。作为参数传递到SelectMany(... 阅读全文
posted @ 2015-11-19 00:43 zishen 阅读(596) 评论(0) 推荐(0)