最近尝试用WPF重新编写之前用WinForm编写的应用程序,在使用中,需要从数据库查询到一系列数据库,在前台DataGrid里面显示出来。 后台 : using System; using System.Collections.Generic; using System.Linq; using Sy ...
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc; namespace WeekMvc.Controllers{ public class Goo ...
分类:
Web程序 时间:
2020-06-26 20:02:21
阅读次数:
61
1. c#容器。及性能比较。 https://blog.csdn.net/chen8238065/article/details/47018271/ 2. IList list 3. AddRange() 4. var关键字 5. list的linq操作 https://www.cnblogs.co ...
必知必会13条 all *** # 取出所有 Book.objects.all().delete() ##删除所有对象 删除数据记录 filter *** # 过滤 Book.objects.filter(pk=1).update(price=190) 修改主键为1的书籍对象,的字段price为19 ...
分类:
数据库 时间:
2020-06-25 23:06:14
阅读次数:
60
C# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HelloWorld { class Program { static void Main(strin ...
分类:
编程语言 时间:
2020-06-25 20:00:13
阅读次数:
93
一、使用场景 我们在将 JSON 反序列化实体集的时候,如果字段是固定的,那么我们序列化非常简单,对应字段写的实体集就可以了。比如下面这种: { "data":[ { "houseid": "210166268", "city": "唐山", "pv": "1" } ], "message": "S ...
参考资料: 《C# 7.0 核心技术指南第七版》第8章 Linq查询表达式 流式查询语法 对比查询语法和流式语法 混合查询语法 延迟执行 重复执行 捕获外部变量 子查询 子查询与延迟执行 构造复杂查询的方式 1 渐进式查询构造 2 into关键字 3 查询的包装 映射方式 对象初始化器 匿名类型 l ...
分类:
其他好文 时间:
2020-06-25 13:40:06
阅读次数:
78
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
其他好文 时间:
2020-06-25 12:23:09
阅读次数:
74
Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1, ...
分类:
其他好文 时间:
2020-06-24 23:53:58
阅读次数:
104
一.分组操作 关键字$group 1.和distinct去重的比较 db.getCollection("2020062401").distinct('姓名') 返回的是一个列表 使用¥group分组 db.getCollection("2020062401").aggregate([ { $grou ...
分类:
其他好文 时间:
2020-06-24 21:42:00
阅读次数:
54