2024年7月26日
摘要:
1.先安装EF相关包 : 2.appsettings.json添加节点 "ConnectionStrings": { "sqlserver": "server=192.168.0.136;Initial Catalog=TY_Version;User ID=sa;Password=123456;Tr
阅读全文
posted @ 2024-07-26 11:04
RookieBoy666
阅读(36)
推荐(0)
2024年7月4日
摘要:
命令: git config --global --add safe.directory 'D:/ZJP/Code/五代'
阅读全文
posted @ 2024-07-04 14:51
RookieBoy666
阅读(63)
推荐(0)
2024年5月8日
摘要:

阅读全文
posted @ 2024-05-08 16:50
RookieBoy666
阅读(34)
推荐(0)
2024年4月9日
摘要:
取二进制图片数据 $('#photoUrl').attr('src', data.Photo ? 'data:image/jpeg;base64,' + data.Photo : '/Content/img/User.png'); 取input type='checkbox' 是否选中 $("#Is
阅读全文
posted @ 2024-04-09 15:09
RookieBoy666
阅读(96)
推荐(0)
2024年3月23日
摘要:
public static class HttpHelper { //private static LogHelper Log { get; } = new LogHelper("HttpHelper"); /// <summary> /// 发起POST同步请求 /// </summary> //
阅读全文
posted @ 2024-03-23 17:56
RookieBoy666
阅读(31)
推荐(0)
摘要:
命名空间: 点击查看代码 using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.IO; using System.Linq; 类: 点击查看代码 /// <summary> /// Json扩展方法
阅读全文
posted @ 2024-03-23 17:55
RookieBoy666
阅读(46)
推荐(0)
摘要:
nuget安装 Magick.NET-Q8-AnyCPU 我项目Framework未 4.5.1 这安装的7.17.0版本的包: 程序集引用: using ImageMagick; ConvertHeicToJpg方法转换代码如下: 点击查看代码 /// <summary> /// Heic转ToJ
阅读全文
posted @ 2024-03-23 16:52
RookieBoy666
阅读(701)
推荐(0)
2024年2月27日
摘要:
代码 点击查看代码 int xWidth3 = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; int yHeight3 = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height
阅读全文
posted @ 2024-02-27 15:08
RookieBoy666
阅读(232)
推荐(0)
摘要:
窗口初始化后: 点击查看代码 //获取窗口的大小,Tag随便保存的,也可以定义变量保存 this.Tag = this.Width.ToString() + "," + this.Height.ToString(); //这一步很重要,不能隐式的去生成这个事件,就是不能直接在属性栏里面双击自动生成,
阅读全文
posted @ 2024-02-27 15:00
RookieBoy666
阅读(231)
推荐(0)
2023年11月23日
摘要:
1.在catch块 return 掉 finally会执行吗? 答案:会 代码: 点击查看代码 try { int s = 1; Console.WriteLine(1); var a = 5 / (1 - s);//除以 0 捕获异常 } catch (Exception) { Console.W
阅读全文
posted @ 2023-11-23 15:58
RookieBoy666
阅读(24)
推荐(0)