- 博客(8)
- 资源 (3)
- 问答 (1)
- 收藏
- 关注
原创 Windows下查看tcp占用的端口号并终止改进程
1.例如查找端口号8886 所在进程号C:\Users\2021112506>netstat -aon|findstr "8886" TCP 0.0.0.0:8886 0.0.0.0:0 LISTENING 11396 TCP [::]:8886 [::]:0 LISTENING 113962.根据进程号查找进程名称C:\Users\20211...
2021-12-06 09:58:09 624
原创 C# EF 框架中分组数据后,取出每个分组最新一条记录
//按照firstsort 进行分组排序在获取secondsort倒叙排序获取最新修改的记录 var sortProductList = productList.AsNoTracking().OrderByDescending(o => o.SecondSort); productList = productList.Select(s => s.FirstSort). ...
2021-11-11 14:12:00 1619 1
转载 Linq分组后,再对分组后的每组进行内部排序,获取每组中的第一条记录
有一张表trust, 里面每个PersonId对应多条记录,要求按照PersonId 进行分组,然后取出每个Person最近的一条记录。组成一个新的列表Linq to SQLvar result = from n in trust group n by n.PersonId into g select g.OrderByDescending(t=>t.Date).FirstOrDefault();Linq to Entityvar resu
2021-11-08 13:42:06 784
转载 C#中 IsGenericType和IsGenericTypeDefinition区别
IsGenericType tells you that this instance of System.Type represents a generic type with all its type parameters specified. For example, List<int> is a generic type.IsGenericTypeDefinition, on the other hand, tells you that this instance of System.
2021-10-21 15:08:49 1309
原创 NetCore3.1 命令行指定webapi 端口
#表示改服务在地址8080端口上监听dotnet MicroService.WebApi.dll --urls http://*:8080
2021-09-19 16:16:35 650
原创 NetCore3.1程序如何发布到IIS环境下
1.首先在vs2019中发布netcore程序2安装iis服务部署模块 地址Download .NET Core 3.1 (Linux, macOS, and Windows)安装完成后查看本地IIS模块中已经存在AspNetCoreModel2 模块3.发布网站查看效果...
2021-09-14 15:29:18 668
转载 gitlab安装手册官方修正版(转)
原文地址:http://www.itzhoulin.com/gitlab/InstallationSelect Version to InstallMake sure you view this installation guide from the branch (version) of GitLab you would like to install. In m
2015-01-25 11:59:46 616
Spring.net和IBatis.net集成Web DEMO,可以使用vs2013打开,需要了解的同学可以下载了。
2019-03-14
jax-ws 方式发布web Service 后台用Hibernate实现,前端.NET通过引用服务方式实现
2015-05-28
自己重新封装的C# FTP实现上传,下载,创建文件,文件夹,删除单个文件 MD5校验等
2014-10-13
hbase与hdfs块大小设置
2017-02-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人