上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: win11扯蛋的防火墙:远程桌面默认只添加了UDP端口规则。 开启防火墙后,导致win10以下的mstsc客户端无法访问。 解决办法就是在防火墙高级设置,添加远程桌面端口(默认3389)的TCP入站规则。 关闭防火墙是下下策。 阅读全文
posted @ 2022-10-17 19:13 enif 阅读(1211) 评论(0) 推荐(0)
摘要: SELECT ','+ col1 FROM t1 FOR XML PATH('') 阅读全文
posted @ 2022-09-30 17:00 enif 阅读(46) 评论(0) 推荐(0)
摘要: 后端:C# .net framework 4.8 WebApi using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Net.WebSockets; 阅读全文
posted @ 2022-09-21 15:46 enif 阅读(529) 评论(0) 推荐(0)
摘要: exec sp_reset_connection (starting up database) 17137 我的应用性能,因为这个原因压力测试性能降低了2000倍。 应该很少有人遇到这个奇葩案例吧?? 数据库选项中,自动关闭 = true时, 连接关闭,自动关闭数据库, 降低性能。 阅读全文
posted @ 2022-09-07 15:25 enif 阅读(807) 评论(0) 推荐(0)
摘要: internal string Code128AutoZPL(string planeText) { StringBuilder sb1 = new StringBuilder(); bool isDigit = GetDigitLength(planeText, 0) >= 2; for (int 阅读全文
posted @ 2022-09-03 17:50 enif 阅读(273) 评论(0) 推荐(0)
摘要: public async Task<bool> GetVAsyncs() { var ms = new List<int>() { 2000, 3000, 1000, 2000, 3000, }; var tasks = new List<Task<bool>>() { }; ms.ForEach( 阅读全文
posted @ 2022-09-01 09:41 enif 阅读(94) 评论(0) 推荐(0)
摘要: 值类型可以直接传值。 复杂类型只能ref传址或者用Variant包装,C#用object接收再解包。 传址就要注意内存分配位置了。 VB6调用C#对象,那就不能预定义收接对象的长度。 VB6传值就容易一些, 用Variant包装 VB6Project下载 using System; using Sy 阅读全文
posted @ 2022-08-03 11:37 enif 阅读(311) 评论(0) 推荐(0)
摘要: 需求:将高频且耗时,且数据基本没变化的查询结果,用缓存提升性能。 实现:继承MemoryCache,重载部分方法,在数据库中持久化缓存数据。 本文使用了两级缓存,不用考虑缓存加载。服务重启,读不到内存缓存,会从数据库读取一次。 //泛型类,内部进行二进制序列化与反序列化 using System; 阅读全文
posted @ 2022-07-29 11:16 enif 阅读(298) 评论(0) 推荐(0)
摘要: 对于一些dbnull对象,== null 通常不是正确的用法。 所有判空操作建议改成 is null 。 阅读全文
posted @ 2022-07-27 08:52 enif 阅读(563) 评论(0) 推荐(0)
摘要: mstsc /w:1660 /h:1016 阅读全文
posted @ 2022-06-10 18:56 enif 阅读(96) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
豫ICP备2021034901号