会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
森雾
博客园
首页
新随笔
联系
订阅
管理
2023年9月5日
线形集合转换树形结构
摘要: public class A { public int Id { get; set; } public int Pid { get; set; } public string Name { get; set; } } public class B { public int Id { get; set
阅读全文
posted @ 2023-09-05 10:53 森雾
阅读(16)
评论(0)
推荐(0)
2023年6月14日
blazor组建实现替换菜单,实现剪切、复制、粘贴,全选操作
摘要: <div> <button @onclick="SelectAll">Select All</button> <button @onclick="Copy">Copy</button> <button @onclick="Cut">Cut</button> <button @onclick="Pas
阅读全文
posted @ 2023-06-14 15:39 森雾
阅读(236)
评论(0)
推荐(0)
2023年2月1日
调用第三方Api
摘要: /// <summary> /// 调用API并返回结果字符串(http方式) /// </summary> /// <param name="url">访问接口全路径,包含参数</param> /// <returns>返回JSON字符串</returns> public static async
阅读全文
posted @ 2023-02-01 14:36 森雾
阅读(41)
评论(0)
推荐(0)
2022年6月28日
树形结构的后端实现
摘要: 1、增加Model模型结构 /// <summary> /// 子id /// </summary> public string Id { get; set; } /// <summary> /// 父id /// </summary> public string ParentId { get; s
阅读全文
posted @ 2022-06-28 19:45 森雾
阅读(159)
评论(0)
推荐(0)
2022年6月19日
关于.Net Core使用appsettings.json中连接数据库字符串
摘要: 1、写入数据库连接字符串 比如: "ConnectionStrings": { "Conn": "Data Source=.;Initial Catalog=TestDome;Integrated Security=True" } 2、新建 AppsettingJson.cs 类 例如: publi
阅读全文
posted @ 2022-06-19 14:23 森雾
阅读(1840)
评论(0)
推荐(0)
2022年3月15日
Excel工作簿导入数据库
摘要: #region 导入 /// <summary> /// 读取excel 表格 /// </summary> /// <param name="fileName"></param> /// <param name="sheetName">Sheet名称</param> /// <param name
阅读全文
posted @ 2022-03-15 18:01 森雾
阅读(108)
评论(0)
推荐(0)
2022年2月25日
GoldPrinter套用模板打印导出
摘要: string path = HttpContext.Current.Server.MapPath(项目中所包含的路径);//找到绝对项目下所包含的路径 GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess(); excel.Open(
阅读全文
posted @ 2022-02-25 15:36 森雾
阅读(73)
评论(0)
推荐(0)
公告