摘要: 代码是个程序员都能写, 怎么的代码才是好的, 1.设计 1.可靠性和可得性 数据库有问题的时候,一般都是系统重启,新系统数据系统应该能够在使用过程中备份,而不应该轻易发生错误。 2.伸缩性 系统应该能够处理用户源源不断的需求。 3.可维护性 系统代码重复改一个需求到处粘贴复制,这种情况下必须考虑重构 阅读全文
posted @ 2015-02-13 14:48 刘小吉 阅读(3185) 评论(4) 推荐(2)
摘要: <script setup lang="tsx"> import { ContentWrap } from '@/components/ContentWrap' import { Search } from '@/components/Search' import { useI18n } from 阅读全文
posted @ 2025-08-15 17:28 刘小吉 阅读(38) 评论(0) 推荐(0)
摘要: 安装 Chocolatey(Windows 包管理器 Windows PowerShell ISE 安装Chocolatey Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::Sec 阅读全文
posted @ 2025-08-15 10:21 刘小吉 阅读(14) 评论(0) 推荐(0)
摘要: 方案零 数据库添加唯一索引 ALTER TABLE your_table ADD UNIQUE (name); 当数据库表有软删除 IsDeleted 字段的时候 就只能用以下方式了注: 网友提了一种方案就是 IsDeleted 设置null 唯一索引不删除 为null的标识删除(此方案待验证) 方 阅读全文
posted @ 2025-07-30 10:08 刘小吉 阅读(7) 评论(0) 推荐(0)
摘要: 新建文件 pack.ps1 目录结构 src Hospital.Fw.Application Hospital.Fw.Application.Contract Hospital.Fw.Domain Hospital.Fw.Domain.Shared Hospital.Fw.HttpApi Hospi 阅读全文
posted @ 2025-07-28 12:14 刘小吉 阅读(26) 评论(0) 推荐(0)
摘要: 在运行时性能上基本一致(请求处理速度、吞吐量等),但在启动性能和内存占用方面,WebApplicationBuilder 模式通常更优。 🧠 原理分析:两者本质相同1. 底层引擎一致无论是通过 IWebHostBuilder(传统模式)还是 WebApplicationBuilder(Minima 阅读全文
posted @ 2025-05-30 10:18 刘小吉 阅读(30) 评论(0) 推荐(0)
摘要: Asp.NetCoreIP地址(用于服务注册) 阅读全文
posted @ 2025-05-30 10:01 刘小吉 阅读(4) 评论(0) 推荐(0)
摘要: 一.推荐 灵码推荐地址和官网介绍 https://developer.aliyun.com/topic/lingma/activities/202405?taskCode=16245&recordId=25d6bfc41bf0b67809848dd90cf62ad6#/?utm_content=m_ 阅读全文
posted @ 2024-06-11 09:36 刘小吉 阅读(8844) 评论(6) 推荐(1)
摘要: /// <summary> /// Ip地址实现 /// </summary> public class IpAddressHelper : IIpAddressHelper { /// <summary> /// IHttpContextAccessor /// </summary> privat 阅读全文
posted @ 2024-05-28 16:53 刘小吉 阅读(38) 评论(0) 推荐(0)
摘要: nuget 缓存目录迁移 阅读全文
posted @ 2024-04-29 17:16 刘小吉 阅读(24) 评论(0) 推荐(0)
摘要: 1.postgresql 查询当月和上个月数据 阅读全文
posted @ 2024-03-21 15:41 刘小吉 阅读(16) 评论(0) 推荐(0)