码迷,mamicode.com
首页 >  
搜索关键字:linq distinct    ( 10194个结果
C# 初始化设定项可以为LINQ查询中的匿名类型进行属性的初始化
由于LINQ查询返回的集合中匿名类型的属性都是只读的,如果需要为匿名属性赋值,只能通过初始化设定项来进行。初始化设定项还能为属性使用表达式。 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 List<Person> person ...
分类:Windows程序   时间:2020-06-21 18:03:31    阅读次数:79
C# linq group by 异常 -----MySqlException: Unknown column 'GroupBy1.K1' in 'field list'
使用Linq group by 查询 一般我们都会这样写Linq:var result = (from si in model.table group si by si.NumCores into grp orderby grp.Key select new CoreCount { Cores = ...
分类:数据库   时间:2020-06-21 10:10:46    阅读次数:100
LINQ与DLR的Expression tree
系列文章:LINQ与DLR的Expression tree(1): 简介LINQ与Expression treeLINQ与DLR的Expression tree(2): 简介DLRLINQ与DLR的Expression tree(3): LINQ与DLR及另外两个库的AST对比LINQ与DLR的Ex ...
分类:其他好文   时间:2020-06-20 23:52:42    阅读次数:58
Winform中Timer应用+ 随机字母-
Form1.CS using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syst ...
分类:Windows程序   时间:2020-06-20 21:59:32    阅读次数:89
C#窗体最大化最小化等比例缩放
不废话,直接代码 using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; usi ...
分类:Windows程序   时间:2020-06-20 19:27:22    阅读次数:78
C#加密解密
1、MD5加密 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; usi ...
分类:Windows程序   时间:2020-06-20 00:58:17    阅读次数:67
select语句
4.1.1 select语句一、select 查询语句 1.select [all | distinct] * | 列名1[,列名2,.........,列名n] from 表名 [where 条件表达式] [group by 列名 [asc | desc ] [having 条件表达式]] [or ...
分类:其他好文   时间:2020-06-19 20:54:38    阅读次数:58
JWT帮助类(相关方法)
注意:首先安装JWT程序包 using System;using System.Collections.Generic;using System.Linq;using System.Web; using JWT;using JWT.Algorithms; //加密算法using JWT.Builde ...
分类:其他好文   时间:2020-06-18 16:04:10    阅读次数:75
Thinking in LINQ, Chapter 1, Thinking Functionally
1. 理解函数编程 把函数理解成一个功能的单元,一个大的功能,可以有若干不同的小功能单元组成。 把大的需要,拆成小的功能。 把注意力集中在要做什么,然后如何精确的得到自己要做的。 2. 使用Func<> 示例: Func<int, int> f = x => x + 1; Func<int, int ...
分类:其他好文   时间:2020-06-17 20:36:30    阅读次数:56
工具类--JsonHelper
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.Data; namespace Co ...
分类:Web程序   时间:2020-06-17 12:38:41    阅读次数:85
10194条   上一页 1 ... 22 23 24 25 26 ... 1020 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!