来自森大科技官方博客http://www.cnsendblog.com/index.php/?p=210GPS平台、网站建设、软件开发、系统运维,找森大网络科技!http://cnsendnet.taobao.com 1、法一:常规方法 2、嗯,.NET中所有的sort,compare都支持自定义“ ...
分类:
其他好文 时间:
2019-12-22 18:31:52
阅读次数:
68
一、定义 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; namespace HJ.B ...
分类:
Web程序 时间:
2019-12-22 18:20:36
阅读次数:
90
练习2 对于学员成绩的评测 成绩>=90:A 成绩>=80&&成绩<90:B 成绩>=70&&成绩<80:C 成绩>=60&&成绩<70:D 成绩<60:E 1 using System; 2 using System.Collections.Generic; 3 using System.Linq ...
来自森大科技官方博客http://www.cnsendblog.com/index.php/?p=205GPS平台、网站建设、软件开发、系统运维,找森大网络科技!http://cnsendnet.taobao.com 用Linq从一个集合选取几列得到一个新的集合-可改列名 ...
分类:
其他好文 时间:
2019-12-21 18:57:17
阅读次数:
60
原文:https://www.cnblogs.com/liangxiaofeng/p/5840754.html 2009年發行ASP.NET MVC 1.0版 2010年發行ASP.NET MVC 2.0版, VS2010 2011年發行ASP.NET MVC 3.0版+EF4,需要.Net4.0支 ...
分类:
Web程序 时间:
2019-12-21 00:03:58
阅读次数:
105
直接上案例: 例子:获取gerrit进程 方法:$ps -aux |grep nginx |grep -v grep |awk '{print $2}' 或者 $ps -ef |grep nginx |grep -v grep |awk '{print $2}' 例子:获取gerrit进程并kill ...
分类:
系统相关 时间:
2019-12-20 20:54:25
阅读次数:
128
服务启动脚本(初始化、启动、登录) #!/bin/bash export PID=/usr/local/nestdb_master/bin/mysqld export PASSWORD=123456 function status() { ps -ef | grep -v 'grep'|grep $ ...
分类:
数据库 时间:
2019-12-20 16:52:06
阅读次数:
198
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
简单的Linq&Lamda语法: (1) 简单的查询语句: Linq语法: var data=from a in db.Areas select a ;Lamda语法: var data=db.Areas;sql语法: string sqlStr=" SELECT * FROM Areas "; ( ...
分类:
其他好文 时间:
2019-12-19 21:32:51
阅读次数:
94
在Entity Framework Core 2.0中增加一个很酷的功能:EF.Functions.Like(),最终解析为SQL中的Like语句,以便于在 LINQ 查询中直接调用。 不过Entity Framework 中默认提供了StartsWith、Contains和EndsWith方法用于 ...
分类:
其他好文 时间:
2019-12-19 19:00:48
阅读次数:
106