ArrayList实现了System.Collections空间下的IEnumerable接口,这个接口是非泛型的。如果要使用LINQ,必须声明枚举变量的类型,依赖Cast查询运算符转换枚举类型。 using System; using System.Collections; using Syste ...
分类:
其他好文 时间:
2020-04-15 21:43:23
阅读次数:
75
环境vs2010 应用=》管理NuGet程序包,安装MVC 4 新建项目 ValuesController.cs using System;using System.Collections.Generic;using System.Linq;using System.Net;using System ...
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace Elight.Infrastructure{ publi ...
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.Net.Sockets;using Sy ...
Mybatis的参数传递情况分为:一个参数、Map参数、javaBean参数、多个参数、Collection参数、List参数、Array数组参数。 一、一个参数 Dao层的接口方法中传入的参数只有一个,XML文件中的取值变量可以任意写(#{value}可以写任意值)。 <select id="ge ...
分类:
其他好文 时间:
2020-04-14 20:55:18
阅读次数:
78
where是限制操作符,它将过滤标准应用在序列上,按照提供的逻辑对序列中的数据进行过滤。 where操作符不启动查询的执行。当开始对序列进行遍历时才开始执行,此时过滤条件将被应用到查询中。 //where限制操作符:使用延迟加载 List<int> nums = new List<int> { 1, ...
分类:
其他好文 时间:
2020-04-14 10:35:37
阅读次数:
66
修改nginx.conf的值就可以解决了将以下代码粘贴到nginx.conf内 client_max_body_size 20M; 可以选择在http{ }中设置:client_max_body_size 20m; 也可以选择在server{ }中设置:client_max_body_size 20 ...
分类:
Web程序 时间:
2020-04-13 19:45:23
阅读次数:
73
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyPinYin { /// /// 汉字拼音转换类 /// public static class Pin ...
分类:
其他好文 时间:
2020-04-13 00:20:34
阅读次数:
170
题目描述: 自己的提交: class Solution: def entityParser(self, text: str) -> str: text = text.replace(""","\"") text = text.replace("'","\'") text = te ...
分类:
Web程序 时间:
2020-04-12 20:30:37
阅读次数:
64
001 Entity Framework Core 2.x P1EF Core概述:Entity Framework Core 简介创建Model与数据库交互关系数据在ASP.NET Core中的应用 EF Core 是什么?EF Core是微软官方开发的一款ORM框架.EFCore原理EF Cor... ...
分类:
其他好文 时间:
2020-04-12 16:44:27
阅读次数:
67