using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Class { class Program { static void Main(string[] args ...
HttpHelper using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Security; using Syst ...
面向对象思想 制作仪表盘 访问修饰符,如果创建的属性字段,类,什么也不加默认为private private字段只能在类内使用 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using Syste ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main ...
病毒现象 服务器出现卡顿、CPU飙升 以下为WatchDogs的判断方式及其命令:存在恶意进程watchdogs: ps -ef | grep watchdogs存在恶意进程ksoftirqds: ps -ef | grep ksoftirqds存在恶意启动项watchdogs: chkconfig ...
分类:
其他好文 时间:
2020-02-28 19:06:10
阅读次数:
108
linq的延时执行是指枚举时才去一个个生成结果元素。 流式处理是linq延时执行的一种,在生成元素前不需要获取所有源元素,只要获取到的源元素足够计算时,便生成结果元素。 流式处理的标准查询运算符返回值通常是个普通序列。 ToAsEnumerable namespace ConsoleApp4 { c ...
分类:
其他好文 时间:
2020-02-28 17:13:37
阅读次数:
75
实体映射时,遇到复杂类型,可选择下述方法处理: NotMapped,跳过映射 在复杂类型上声明 [Owned],但仅限该复杂类型是全部由简单值类型组成的 自定义序列化方法 示例: IPInfo使用了owned,对IPEndPoint使用自定义序列化,对VersionInfo使用JSON序列化 @@@... ...
分类:
其他好文 时间:
2020-02-26 17:00:30
阅读次数:
66
标准查询运算符: 标准查询运算符是一组方法,提供包括筛选where、投影select、聚合(例如max)、排序order by等在内的查询功能。 string sentence = "the quick brown fox jumps over the lazy dog"; string[] wor ...
分类:
其他好文 时间:
2020-02-26 01:18:36
阅读次数:
73
首先看到Distinct 肯定会想当然的直接.Distinct() 这样调用。 需要知道这里的Distinct 是以对象为单位来去重的。当你Select new 映射的时候就算属性值相同也不会进行去重。 单列的使用这里就略过使用了 多列的使用(比如我需要去重KeyValuePairModel 这个对 ...
分类:
其他好文 时间:
2020-02-24 18:56:48
阅读次数:
75
"TypeScript Array Remove" "EF Code First 快速创建" "EF Core 多个DbContext迁移命令" "Entity Framework Core for Console" "EntityFrameworkCore 一表对多表存在外键的设计" "linq ...
分类:
其他好文 时间:
2020-02-24 13:08:56
阅读次数:
78