摘要: C# Net8 MediatR 阅读全文
posted @ 2024-01-13 00:09 Bruce_Cheung 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1. 创建 .net5控制台项目: dotnet new console -o WebServiceConsole 2. 添加全局工具 dotnet tool install --global dotnet-svcutil --version 2.0.3 3. 执行 dotnet restore d 阅读全文
posted @ 2021-11-21 22:23 Bruce_Cheung 阅读(596) 评论(2) 推荐(0) 编辑
摘要: 建表: 1 USE [JX_IMS_CPK] 2 GO 3 4 SET ANSI_NULLS ON 5 GO 6 7 SET QUOTED_IDENTIFIER ON 8 GO 9 10 CREATE TABLE [dbo].[WCS_Seq]( 11 [SeqType] [int] NOT NUL 阅读全文
posted @ 2020-04-08 14:06 Bruce_Cheung 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: 基于0起步来创建一个服务,做到简单的记录时间日志功能,其具体招行方法可自行添加。 1.创建服务 2.删除默认服务文件 3.添加自己的服务文件 4.更改启动项目 5. 引用 using System.Timers;并添加FileClass类 FileClass类 按 Ctrl+C 复制代码 按 Ctr 阅读全文
posted @ 2020-03-15 20:15 Bruce_Cheung 阅读(6085) 评论(1) 推荐(0) 编辑
摘要: 转载地址:【https://blog.csdn.net/qq_43115104/article/details/84228987】 阅读全文
posted @ 2020-01-22 02:08 Bruce_Cheung 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 参考文章:【https://blog.csdn.net/u014205965/article/details/45972803】 阅读全文
posted @ 2020-01-22 01:48 Bruce_Cheung 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 微软名字起的也很直白,直接叫missing_index,就是sqlserver 经过分析认为这些字段处理和查询是最耗时的,最好在 EqualityUsage上包含的字段上加个非聚集索引.前几个用时是后几名的好几个数量级.加了索引立马飞起. 转自[https://www.cnblogs.com/qia 阅读全文
posted @ 2019-11-18 09:04 Bruce_Cheung 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 有一句代碼: RegularDate.cshtml 內容如下: 目的是將數據庫里的 DateTime 顯示為完整日期,如 2019/08/09,時間部份舍去。 當 SellDate 不為空值時,用 "RegularDate" 這個 templateName 來 render SellDate 很方便 阅读全文
posted @ 2019-08-09 13:55 Bruce_Cheung 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 先貼使用代碼: 1 using Quartz; 2 using Quartz.Impl; 3 using Quartz.Logging; 4 using System; 5 using System.Collections.Specialized; 6 using System.Threading. 阅读全文
posted @ 2019-07-16 17:13 Bruce_Cheung 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 之前寫的類存在Excel進程不能結束的Bug,重寫ExcelReader類,類實例清理時Excel進程自動結束。 1 class ExcelReader 2 { 3 // Excel Object 4 public Application app; 5 public Workbooks wbs; 6 阅读全文
posted @ 2019-06-21 16:32 Bruce_Cheung 阅读(456) 评论(0) 推荐(0) 编辑