摘要:private void SetShpFcSaveC5s(ShpFcSave model) { if (string.IsNullOrWhiteSpace(model.C5) == false) { JsonDocument document = JsonDocument.Parse(model.C
阅读全文
摘要:响应式扩展 这个存储库包含四个库,它们在概念上是相关的,因为它们都与 LINQ over of things 序列有关: Reactive Extensions for .NET又名 Rx.NET 或 Rx ( System.Reactive ):一个用于事件驱动编程的库,具有可组合的声明性模型 A
阅读全文
摘要:public class PriorityStatus : SmartEnum<PriorityStatus> { public static readonly PriorityStatus Backlog = new(nameof(Backlog), 0); public static reado
阅读全文
摘要:Task 类 定义 命名空间: System.Threading.Tasks程序集: System.Runtime.dll表示一个异步操作 public class Task : IAsyncResult, IDisposable 继承 Object->Task派生 System.Threading
阅读全文
摘要:Net Framework4.0引入了一个新的关于异步操作的API,它叫做.任务并行库( Task Parallel Library,简称TPL), .Net Framework 4.5版对该API进行了轻微的改进,使用更简单。TPL可被认为是线程池之上的又一个抽象层,其对程序员隐藏了与线程池交互的
阅读全文
摘要:利用缓存可以让系统的性能得到极大的提升。 缓存命中:从缓存中获取了需要的数据就称缓存命中。 命中率:多次请求中命中的请求占全部请求次数的百分比。即:缓存命中/全部缓存请求=命中率 过期策略: 绝对时间 滑动时间:指定一段时间,如果在这段时间有访问,则自动续期 绝对时间+滑动时间:能保证即是频繁访问的
阅读全文
摘要:设置属性的日期类型 ReleaseDate 上的 DataType 特性指定了数据的类型 (Date)。 通过此特性: 用户无需在日期字段中输入时间信息。 仅显示日期,而非时间信息。 [DataType(DataType.Date)] public DateTime Date { get; set;
阅读全文
摘要:一、.Net Core中Md5使用说明 .Net Core中自带Md5加密处理,使用方法和 .Net Framework中相同 所在命名空间: using System.Security.Cryptography; using System; using System.Collections.Gen
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Aut
阅读全文
摘要:public List<DailyStock> ReadExcelFile(string fileName) { List<DailyStock> list = new List<DailyStock>(); DataTable dt = ReadExcelFileToDataTable(fileN
阅读全文
摘要:解释 Token 令牌 https://jwt.ms/
阅读全文
摘要:https://jwt.ms/ 解码令牌 通用数据库工具 https://dbeaver.io/ crontab执行时间计算 https://cron.ciding.cc/ 草料二维码生成工具 https://cli.im/ 深信服 VPN
阅读全文
摘要:微软官方学习资料 https://dotnet.microsoft.com/zh-cn/
阅读全文
摘要:身份验证授权 IdentityServer4 https://identityserver4.readthedocs.io/en/latest/quickstarts/1_client_credentials.html
阅读全文
摘要:https://docs.automapper.org/ 基于约定的对象-对象映射器。100% 有机和无麸质。消除将一个对象映射到另一个对象的所有麻烦。 什么是 AutoMapper? AutoMapper 是一个简单的小库,旨在解决一个看似复杂的问题——摆脱将一个对象映射到另一个对象的代码。这种类
阅读全文
摘要:对于ASP.NET Core MVC 项目,框架会自动注入内存缓存服务。对于 ASP.NET Web API 等需要手动注入内存缓存服务。 注入内存缓存服务: builder.Services.AddMemoryCache();//注入内存缓存服务 内存缓存工具类接口: using Microsof
阅读全文