using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; using System.IO; using System.Xm ...
分类:
其他好文 时间:
2020-09-09 18:55:07
阅读次数:
45
一:背景 1. 讲故事 前段时间有位朋友在微信群问,在向 mongodb 中插入的时间为啥取出来的时候少了 8 个小时,8 在时间处理上是一个非常敏感的数字,又吉利又是一个普适的话题,后来我想想初次使用 mongodb 的朋友一定还会遇到各种新坑,比如说: 插入的数据取不出来,看不爽的 Object ...
分类:
数据库 时间:
2020-08-24 16:38:14
阅读次数:
69
1. XML序列化实例演示 using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Linq;using System.Text;using System. ...
Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to the sum of the values of the origin ...
分类:
其他好文 时间:
2020-08-19 19:47:45
阅读次数:
64
1.算法面试题:一个List,要求删除里面的男生,不用Linq和Lamda,求各种解,并说明优缺点! using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; na ...
分类:
Web程序 时间:
2020-08-10 14:29:55
阅读次数:
80
内存占用来看,排序方案肯定是要优秀一些的了,但是在这个求快的时代,内存这个可怜的家伙很多时候都会被我们安排在优化的第二梯队。 ...
分类:
编程语言 时间:
2020-08-09 17:57:30
阅读次数:
82
下载PDF_Article.zip - 5.4 MB 下载SqlScriptToCreateTable.zip - 659 B 下载SqlScriptToCreateDatabase.zip - 1,000 B 下载LearningMVC.zip - 2.3 MB 介绍 在本系列教程的第一部分中,我 ...
分类:
数据库 时间:
2020-08-08 11:48:07
阅读次数:
116
linq中的join是inner join内连接,就是当两个表中有一个表对应的数据没有的时候那个关联就不成立。 比如表A B的数据如下 from a in A join b in B on a.BId equals b.Idselect new {a.Id, b.Id} 的结果是 {1,1} {2, ...
分类:
其他好文 时间:
2020-08-08 10:36:02
阅读次数:
96
List<MenuPO> menuList = RecursionUtil.getFather(menuPOS); //去重复 menuList = menuList.stream().distinct().collect(Collectors.toList()); ...
分类:
其他好文 时间:
2020-08-07 18:02:44
阅读次数:
69
本节内容为Linq及其拓展方法、Linq中表达式树的使用 简介 语言集成查询(LINQ)是一系列直接将查询功能集成到C#语言的技术统称。数据查询历来都表示为简单的字符串,没有编译时类型检查或IntelliSense支持。此外,需要针对每种类型的数据源了解不同的查询语言:SQL数据库、XML文档、各种 ...
分类:
Web程序 时间:
2020-08-06 17:08:32
阅读次数:
92