sunny123456

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2019年10月17日

摘要: 原文链接 https://www.cnblogs.com/heartofrainbow/p/5700339.html 新建一个控制台程序ConsoleApplication1 1、where()用法:必须加条件,且返回对象结果。    static void Main(strin 阅读全文
posted @ 2019-10-17 19:48 sunny123456 阅读(13337) 评论(0) 推荐(1)

摘要: var result = dogs.Where(d = d.Id 1).Join(masters, d = d.MasterId, m = m.Id, (d, m) = new { DogName = d.Name, MasterName = m.Name }); 在dog的集合中查询dog.Id大 阅读全文
posted @ 2019-10-17 19:39 sunny123456 阅读(6303) 评论(0) 推荐(0)

摘要: 原文链接 最近在研究C 泛型集合的时候发现了List.Join方法,这个方法与C 中的string.Join方法还有js中的join方法不一样,不是根据分隔符链接字符串,而是根据两个对象关联起来生成新的数据。   List.Join方法更像SQL 中的JOIN连接,该方法是根据两个泛型集合 阅读全文
posted @ 2019-10-17 19:34 sunny123456 阅读(11877) 评论(0) 推荐(0)

摘要: https://www.csdn.net/gather_2a/MtTaQgysNjItYmxvZwO0O0OO0O0O.html 内容很长,需要耐心。 阅读全文
posted @ 2019-10-17 19:29 sunny123456 阅读(151) 评论(0) 推荐(0)

摘要: 原文链接 https://www.e learn.cn/content/net/1318737 一、第一种用法: public static IEnumerable<TResult> SelectMany<TSource, TResult>(this IEnumerable& 阅读全文
posted @ 2019-10-17 19:08 sunny123456 阅读(2275) 评论(0) 推荐(0)

摘要: 原文链接 : https://www.cnblogs.com/knightcoming/articles/6107755.html c 中查询表达式GroupBy的使用 说明: c 中实现IEnumerable<T>接口的类提供了很多扩展方法,其中Select,Where等为最常见的,且 阅读全文
posted @ 2019-10-17 18:55 sunny123456 阅读(793) 评论(0) 推荐(0)