会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Fork me on Github
好好学习,天天向上
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
11
下一页
2025年7月16日
WPF SqlSugar注入
摘要: 1.安装 SqlSugar 依赖包 2.创建数据库配置类 public class SqlSugarConfig { private static readonly string connectionString = "Data Source=localhost;Database=xxx;User
阅读全文
posted @ 2025-07-16 17:02 昂昂呀
阅读(106)
评论(0)
推荐(0)
2025年6月27日
带有复选框的 Controls.TreeView
摘要: 1.定义 TreeView 模型 using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq;
阅读全文
posted @ 2025-06-27 16:05 昂昂呀
阅读(23)
评论(0)
推荐(0)
2025年5月27日
Thread和Task
摘要: 1. 抽象层次 Thread:Thread类是对操作系统线程的直接抽象。它代表了一个实际的操作系统线程,创建Thread对象时,就会在操作系统中创建一个新的线程。 Task:Task是更高层次的抽象,它基于线程池来实现。Task代表一个异步操作,并不一定对应一个新的线程。它可以在现有的线程池线程上执
阅读全文
posted @ 2025-05-27 14:56 昂昂呀
阅读(108)
评论(0)
推荐(0)
2025年5月20日
WPF请求WebAPI
摘要: 一、请求模型 /// <summary> /// 请求模型 /// </summary> public class ApiRequest { /// <summary> /// 请求路由 /// </summary> public string Route { get; set; } /// <su
阅读全文
posted @ 2025-05-20 16:26 昂昂呀
阅读(163)
评论(0)
推荐(0)
2025年5月19日
Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
摘要: Where 方法定义在 System.Linq 命名空间中,并且通常用于 LINQ 查询。 List<string> fruits = new List<string> { "apple", "passionfruit", "banana", "mango", "orange", "blueberr
阅读全文
posted @ 2025-05-19 14:53 昂昂呀
阅读(47)
评论(0)
推荐(0)
2025年5月18日
EF
摘要: 一、EF 微软官方提供的ORM工具,ORM 是将数据存储从域对象自动映射到关系型数据库的工具。ORM主要包括3个部分:域对象、关系数据库对象、映射关系。ORM使类提供自动化CRUD,使开发人员从数据库API和SQL中解放出来。 ORM让开发人员节省数据库访问的代码时间,将更多的时间放到业务逻辑层代码
阅读全文
posted @ 2025-05-18 22:00 昂昂呀
阅读(170)
评论(0)
推荐(0)
2025年5月17日
附加属性
摘要: WPF的 PasswordBox 的 Password 属性不是依赖属性,不能绑定。为了实现这个控件的MVVM模式,可以利用附加属性实现 PasswordBox 控件的绑定使用。其主要的思想是,设计一个PasswordBoxHelper 类型,并在其中定义一个附加属性,这个属性的名称也叫 Passw
阅读全文
posted @ 2025-05-17 21:32 昂昂呀
阅读(37)
评论(0)
推荐(0)
2025年5月14日
Prism_订阅
摘要: 1.创建消息事件类,继承发布订阅事件类 PubSubEvent /// <summary> /// 发布订阅 消息事件类 /// </summary> public class MsgEvent : PubSubEvent<string> { } 2.获取事件聚合器 IEventAggregator
阅读全文
posted @ 2025-05-14 22:12 昂昂呀
阅读(42)
评论(0)
推荐(0)
2025年5月13日
Prism_对话框
摘要: 一.注册对话框 /// <summary> /// 注入服务 /// </summary> /// <param name="containerRegistry"></param> /// <exception cref="NotImplementedException"></exception>
阅读全文
posted @ 2025-05-13 23:08 昂昂呀
阅读(340)
评论(0)
推荐(0)
2025年5月12日
EPPlus
摘要: using OfficeOpenXml; // 写入到 Excel 文件 string filePath = "C:\\Users\\Administrator\\Desktop\\output.xlsx"; ExcelPackage.License.SetNonCommercialPersonal
阅读全文
posted @ 2025-05-12 23:10 昂昂呀
阅读(67)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
11
下一页
公告