摘要: 本文参考 哔哩哔哩黑马 TODO 补充 详细mysql 实例操作语句 全局锁 全局锁就是对整个数据库实例加锁 加锁后处于只读状态 后续的DML的写 语句 和 DLL 不执行 表级锁 表锁 表锁分为两类: 表共享锁(read lock) 表独占写锁(write lock) --> 语法 :加锁 loc 阅读全文
posted @ 2024-05-08 11:00 Bo-Hong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 此项功能是在读取word的时候 根据标题层级分出父子关系菜单 具体效果 递归实现 using System; using System.Collections.Generic; public class Menu { public int Id { get; set; } public int Pi 阅读全文
posted @ 2024-03-03 18:35 Bo-Hong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 遍历转树结构 { var list = new List<Foo>{ new Foo("111",1), new Foo("112",2), new Foo("113",2), new Foo("114",2), new Foo("115",3), new Foo("116",1), new Foo 阅读全文
posted @ 2024-01-29 21:47 Bo-Hong 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 自增模式 自增模式 当设置 IDENTITY_INSERT 为 ON 时 , 必须把需要插入的列名列出来, 不然报错 正确例子: SET IDENTITY_INSERT (表名) ON insert into table(id,name) value(1,名称) SET IDENTITY_INSER 阅读全文
posted @ 2024-01-26 10:44 Bo-Hong 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 快速对比两个list数据集合 此文引用csdn :https://blog.csdn.net/Zhu_daye/article/details/104798410 小批量、快速对比两个list数据集合 using System.Linq.Expressions; Main(); void Main( 阅读全文
posted @ 2024-01-21 20:13 Bo-Hong 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 单个继电器效果图:哔哩哔哩 四路继电器效果图: ### ESP8266 模块和 单个继电器接线图 ![image](https://img2024.cnblogs.com/blog/1543371/202401/1543371-20240121124127193-1448865458.png) ## 阅读全文
posted @ 2024-01-21 13:18 Bo-Hong 阅读(250) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2023.cnblogs.com/blog/1543371/202309/1543371-20230906221211960-953277653.png) 点击查看代码 ``` using Aspose.Words; using Aspose.Words.Ta 阅读全文
posted @ 2023-09-06 22:12 Bo-Hong 阅读(10) 评论(0) 推荐(0) 编辑
摘要: ``` C# public class CodeService { public string Build(BuildInputDto input) { var assembly = Assembly.GetExecutingAssembly(); var resourceName = assemb 阅读全文
posted @ 2023-05-24 21:51 Bo-Hong 阅读(27) 评论(0) 推荐(0) 编辑
摘要: ### 垃圾回收 ##### 具体的还得反编译去查看 > net的垃圾回收器采用mark-and-compact 算法。一次回收周期开始时,它识别对象的所有根引用。根引用是来自静态变量、 CPU寄存器以及局部变量或参数实例的任何引用。基于该列表,垃圾回收器可遍历每个根 引用所标识的树形结构,并递归确 阅读全文
posted @ 2023-05-22 21:37 Bo-Hong 阅读(14) 评论(0) 推荐(0) 编辑
摘要: ``` C# using System; using System.Collections; using System.Collections.Generic; using System.Threading; // Include Silverlight's managed resources #i 阅读全文
posted @ 2023-05-22 21:34 Bo-Hong 阅读(7) 评论(0) 推荐(0) 编辑