随笔分类 -  日常记录

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

点击右上角即可分享
微信分享提示