摘要: 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 森雾 阅读(4) 评论(0) 推荐(0) 编辑
摘要: <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:40 森雾 阅读(125) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 调用API并返回结果字符串(http方式) /// </summary> /// <param name="url">访问接口全路径,包含参数</param> /// <returns>返回JSON字符串</returns> public static async 阅读全文
posted @ 2023-02-01 14:36 森雾 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1、增加Model模型结构 /// <summary> /// 子id /// </summary> public string Id { get; set; } /// <summary> /// 父id /// </summary> public string ParentId { get; s 阅读全文
posted @ 2022-06-28 19:45 森雾 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1、写入数据库连接字符串 比如: "ConnectionStrings": { "Conn": "Data Source=.;Initial Catalog=TestDome;Integrated Security=True" } 2、新建 AppsettingJson.cs 类 例如: publi 阅读全文
posted @ 2022-06-19 14:23 森雾 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: #region 导入 /// <summary> /// 读取excel 表格 /// </summary> /// <param name="fileName"></param> /// <param name="sheetName">Sheet名称</param> /// <param name 阅读全文
posted @ 2022-03-15 18:01 森雾 阅读(97) 评论(0) 推荐(0) 编辑
摘要: string path = HttpContext.Current.Server.MapPath(项目中所包含的路径);//找到绝对项目下所包含的路径 GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess(); excel.Open( 阅读全文
posted @ 2022-02-25 15:36 森雾 阅读(45) 评论(0) 推荐(0) 编辑