会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不骄不傲
博客园
首页
新随笔
联系
管理
订阅
2024年5月28日
数据结构原理学习
摘要: 可视化学习网站 https://www.cs.usfca.edu/~galles/visualization/Algorithms.html
阅读全文
posted @ 2024-05-28 13:38 不骄不傲
阅读(20)
评论(0)
推荐(0)
2022年3月18日
C#中文转简拼
摘要: nuget引用 public static string ChineseCharToPingyin(string str) { if (null == str || str.Length <= 0) { return ""; } StringBuilder sb = new StringBuilde
阅读全文
posted @ 2022-03-18 09:32 不骄不傲
阅读(129)
评论(0)
推荐(0)
2021年10月24日
.NET5 IOC容器IServiceCollection 基本操作
摘要: .net5内置ioc容器 什么是ioc容器?把对象创建统一交给第三方容器来创建; 如何使用ioc?方法一:1.在Startup.cs中ConfigureServices函数来注册服务。services.AddTransient<ITestServiceA, TestServiceA>(); #reg
阅读全文
posted @ 2021-10-24 09:33 不骄不傲
阅读(3695)
评论(0)
推荐(0)
2021年10月18日
dapper sql
摘要: //多条件参数var args = new DynamicParameters(new {}); if (!string.IsNullOrWhiteSpace(userId)) { sb.Append(" AND userId = @userId"); args.Add("userId", user
阅读全文
posted @ 2021-10-18 10:33 不骄不傲
阅读(160)
评论(0)
推荐(0)
2021年9月27日
C#创建微信小程序二维码
摘要: public static void CreateQRCode() { string token = GetAccessToken(); CreatewxaQRCodeModel qrcodeModel = new CreatewxaQRCodeModel { path = "pages/home-
阅读全文
posted @ 2021-09-27 17:29 不骄不傲
阅读(830)
评论(0)
推荐(0)
2021年8月16日
mac redis安装及基本操作
摘要: 安装redis brew install redis 启动 redis-server 连接客户端 redis-cli 更换数据库select <x> string类型 设置键不存在时为添加,如果已经存在则修改 set key value 设置键添加过期时间(秒) setex key 1 value
阅读全文
posted @ 2021-08-16 14:01 不骄不傲
阅读(182)
评论(0)
推荐(0)
2021年8月13日
mac homebrew命令
摘要: 安装需要 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 不骄不傲
阅读(45)
评论(0)
推荐(0)
2021年7月16日
.net5 项目配置log4net日志
摘要: 1.在nuget中引入log4net包 2.在nuget中引入Microsoft.Extensions.Logging.log4net.AspNetCore包 3.在项目中新增log4net配置文件 4.设置log4net配置文件有两种方式 第一种:在Program.cs类CreateHostBui
阅读全文
posted @ 2021-07-16 11:22 不骄不傲
阅读(646)
评论(0)
推荐(0)
2021年4月5日
C#9.0新特性
摘要: public class SharpNineNewInfo { public static void Show() { //记录 { //init对于类内部属性只能在初始化时赋值 UserInfo user1 = new UserInfo() { Id = 1, UserName = "1" };
阅读全文
posted @ 2021-04-05 10:36 不骄不傲
阅读(107)
评论(0)
推荐(0)
C#8.0新特性
摘要: public class SharpEightNewInfo { public enum WeekInfo { MonDay = 1, TuesDay = 2 } public static void Show() { //默认接口函数,接口函数可以直接在接口里实现 { ICustomInterfa
阅读全文
posted @ 2021-04-05 09:42 不骄不傲
阅读(156)
评论(0)
推荐(0)
下一页
公告