![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
阿让_华
这个作者很懒,什么都没留下…
展开
-
C# EF 框架中分组数据后,取出每个分组最新一条记录
//按照firstsort 进行分组排序在获取secondsort倒叙排序获取最新修改的记录 var sortProductList = productList.AsNoTracking().OrderByDescending(o => o.SecondSort); productList = productList.Select(s => s.FirstSort). ...原创 2021-11-11 14:12:00 · 1748 阅读 · 1 评论 -
C#中 IsGenericType和IsGenericTypeDefinition区别
IsGenericType tells you that this instance of System.Type represents a generic type with all its type parameters specified. For example, List<int> is a generic type.IsGenericTypeDefinition, on the other hand, tells you that this instance of System.转载 2021-10-21 15:08:49 · 1392 阅读 · 0 评论