摘要: 可视化学习网站 https://www.cs.usfca.edu/~galles/visualization/Algorithms.html 阅读全文
posted @ 2024-05-28 13:38 不骄不傲 阅读(1) 评论(0) 推荐(0) 编辑
摘要: nuget引用 public static string ChineseCharToPingyin(string str) { if (null == str || str.Length <= 0) { return ""; } StringBuilder sb = new StringBuilde 阅读全文
posted @ 2022-03-18 09:32 不骄不傲 阅读(112) 评论(0) 推荐(0) 编辑
摘要: .net5内置ioc容器 什么是ioc容器?把对象创建统一交给第三方容器来创建; 如何使用ioc?方法一:1.在Startup.cs中ConfigureServices函数来注册服务。services.AddTransient<ITestServiceA, TestServiceA>(); #reg 阅读全文
posted @ 2021-10-24 09:33 不骄不傲 阅读(3175) 评论(0) 推荐(0) 编辑
摘要: //多条件参数var args = new DynamicParameters(new {}); if (!string.IsNullOrWhiteSpace(userId)) { sb.Append(" AND userId = @userId"); args.Add("userId", user 阅读全文
posted @ 2021-10-18 10:33 不骄不傲 阅读(151) 评论(0) 推荐(0) 编辑
摘要: public static void CreateQRCode() { string token = GetAccessToken(); CreatewxaQRCodeModel qrcodeModel = new CreatewxaQRCodeModel { path = "pages/home- 阅读全文
posted @ 2021-09-27 17:29 不骄不傲 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 安装redis brew install redis 启动 redis-server 连接客户端 redis-cli 更换数据库select <x> string类型 设置键不存在时为添加,如果已经存在则修改 set key value 设置键添加过期时间(秒) setex key 1 value 阅读全文
posted @ 2021-08-16 14:01 不骄不傲 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 安装需要 Ruby ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 搜索 brew search mysql 查询(查看具体信息) brew info mysql 更新(更新 Homebrew 自 阅读全文
posted @ 2021-08-13 14:09 不骄不傲 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1.在nuget中引入log4net包 2.在nuget中引入Microsoft.Extensions.Logging.log4net.AspNetCore包 3.在项目中新增log4net配置文件 4.设置log4net配置文件有两种方式 第一种:在Program.cs类CreateHostBui 阅读全文
posted @ 2021-07-16 11:22 不骄不傲 阅读(612) 评论(0) 推荐(0) 编辑
摘要: public class SharpNineNewInfo { public static void Show() { //记录 { //init对于类内部属性只能在初始化时赋值 UserInfo user1 = new UserInfo() { Id = 1, UserName = "1" }; 阅读全文
posted @ 2021-04-05 10:36 不骄不傲 阅读(93) 评论(0) 推荐(0) 编辑
摘要: public class SharpEightNewInfo { public enum WeekInfo { MonDay = 1, TuesDay = 2 } public static void Show() { //默认接口函数,接口函数可以直接在接口里实现 { ICustomInterfa 阅读全文
posted @ 2021-04-05 09:42 不骄不傲 阅读(149) 评论(0) 推荐(0) 编辑