摘要: 例一: Parallel.For(1, arraySize, i => { ary[i] = ary[i] + ary[i - 1]; });如下: object _lock = new object(); Parallel.For(1, arraySize, i => { lock(_lock) 阅读全文
posted @ 2022-05-25 11:34 Tammytan 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 日志配置通常由 appsettings {Environment} .json 文件的 Logging 部分提供 。 若要记录 SQL 语句,请将 "Microsoft.EntityFrameworkCore.Database.Command": "Information" 添加到 appsetti 阅读全文
posted @ 2022-05-19 17:11 Tammytan 阅读(122) 评论(0) 推荐(0) 编辑
摘要: public class StreamHub : Hub { public ChannelReader<string> ReadLogStream() { var channel = Channel.CreateUnbounded<string>(); _ = WriteFileLine(chann 阅读全文
posted @ 2022-05-19 16:14 Tammytan 阅读(81) 评论(0) 推荐(0) 编辑
摘要: xUnit.Net 阅读全文
posted @ 2022-05-11 14:33 Tammytan 阅读(66) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web.DynamicData; using System.ComponentModel.DataAnnotations; [MetadataType(typeof(CustomerMetaData))] public partial class 阅读全文
posted @ 2022-05-10 15:24 Tammytan 阅读(79) 评论(0) 推荐(0) 编辑
摘要: import { View as ViewFile} from '@/api/SafetyRule'; const Handler_DownLoadFile = (Id:number,IsEnglish:boolean)=>{ sfParam.Id=Id; sfParam.IsEnglish=IsE 阅读全文
posted @ 2022-05-05 17:17 Tammytan 阅读(33) 评论(0) 推荐(0) 编辑
摘要: public List<string> WriteFile(List<UploadDTO> uploads) { List<string> fileNames = new List<string>(); try { uploads.ForEach(item => { string FilePath 阅读全文
posted @ 2022-05-05 14:54 Tammytan 阅读(26) 评论(0) 推荐(0) 编辑
摘要: C:\>fsutil file createnew 用法 : fsutil file createnew <文件名> <长度> 范例:fsutil file createnew d:\aab.txt 4096 fsutil file createnew d:\4mb.pdf 4194304 阅读全文
posted @ 2022-05-04 14:19 Tammytan 阅读(584) 评论(0) 推荐(0) 编辑
摘要: public MessageObjectPO<UploadPO> OnPostUpload(UploadRO uploadRO) { var response = new MessageObjectPO<UploadPO>(); Guid guid = Guid.NewGuid(); string 阅读全文
posted @ 2022-04-19 12:42 Tammytan 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 一.查询语法 编写大多数查询的推荐方式是使用查询语法创建查询表达式。 // Query #1. List<int> numbers = new List<int>() { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; // The query variable can also b 阅读全文
posted @ 2022-04-12 15:13 Tammytan 阅读(345) 评论(0) 推荐(0) 编辑