摘要: public class ChangeDateTimeKind { public static async Task ToUtc<T>(T model) { Type NewType = typeof(T); foreach (PropertyInfo item in NewType.GetRunt 阅读全文
posted @ 2022-10-19 09:01 MakeGod 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 查询死锁 SELECT request_session_id spid,OBJECT_NAME (resource_associated_entity_id)tableName FROM sys.dm_tran_locks WHERE resource_type='OBJECT'; 杀进程 exec 阅读全文
posted @ 2022-08-12 09:09 MakeGod 阅读(975) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.IO; using Newtonsoft.Json; using Newtonsoft.Jso 阅读全文
posted @ 2022-08-01 14:41 MakeGod 阅读(5721) 评论(0) 推荐(0) 编辑
摘要: 一、SQL Server 1、获取数据库表信息 DECLARE @TableInfo TABLE ( name VARCHAR(50) , sumrows VARCHAR(11) , reserved VARCHAR(50) , data VARCHAR(50) , index_size VARCH 阅读全文
posted @ 2021-12-31 14:30 MakeGod 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 要写成,缺少action 阅读全文
posted @ 2021-12-27 11:08 MakeGod 阅读(187) 评论(0) 推荐(0) 编辑
摘要: @echo off & setlocal EnableDelayedExpansion set obj[0]=8886 set port=0set pid=0 for /f "usebackq delims== tokens=1-2" %%a in (`set obj`) do ( set port 阅读全文
posted @ 2021-12-07 14:15 MakeGod 阅读(450) 评论(0) 推荐(0) 编辑
摘要: C# 9 中引入了 record,record 是一个特殊类,用它来实现 model 在有些情况下会非常的好用 using System; using System.Collections.Generic; namespace ConsoleApp9 { class Program { static 阅读全文
posted @ 2021-11-01 15:09 MakeGod 阅读(621) 评论(0) 推荐(0) 编辑
摘要: IIS找对对应的程序池=》高级设置=》进程模型=》闲置超时(分钟)默认的20改成0 阅读全文
posted @ 2021-10-18 09:37 MakeGod 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 一、windows安装OpenSSH 1,下载openSSH windows版 GitHub下载链接 我安装的是64位版本 OpenSSH-Win64.zip 2,解压到C:\Program Files\OpenSSH,建议是放在此目录下 3,cmd到openSSH路径下 依次执行 1)安装sshd 阅读全文
posted @ 2021-09-17 14:30 MakeGod 阅读(2548) 评论(0) 推荐(0) 编辑
摘要: Html: <div> <div>金额 </div> <input id="Money" type="text" value="0.00" maxlength="12" onchange="TotalLimitOnchange(this)" onkeyup="TotalLimitOnkeyup(th 阅读全文
posted @ 2021-09-13 17:09 MakeGod 阅读(72) 评论(0) 推荐(0) 编辑