摘要: 创建 01-netplan.yam 文件 network: version: 2 renderer: networkd ethernets: ens33: dhcp4: no addresses: [192.168.44.11/24] gateway4: 192.168.44.255 nameser 阅读全文
posted @ 2022-01-24 12:55 以沫浅夏 阅读(59) 评论(0) 推荐(0) 编辑
摘要: VS自动按日期生成版本号,修改解决方案文件 <PropertyGroup> <TargetFramework>netstandard2.1</TargetFramework> <Revision>$([System.DateTime]::Now.ToString("yyyy.MM.dd.HHmm") 阅读全文
posted @ 2020-07-18 20:27 以沫浅夏 阅读(834) 评论(1) 推荐(0) 编辑
摘要: /// /// 计算文本的宽度 /// /// /// public static int GetStringLength(string str, int AddLength = 0) { Font f = new Font("微软雅黑", 12F, S... 阅读全文
posted @ 2018-12-14 16:26 以沫浅夏 阅读(798) 评论(0) 推荐(0) 编辑
摘要: ORACLE的SQL Developer工具默认的日期格式DD-MON-RR,在SQL查询中往往你看不到时间信息,此时你必须修改日期格式。具体如下所示 工具->首选项->数据库->NLS->日期格式: DD-MON-RR 修改为: YYYY-MM-DD HH24:MI:SS转载:https://www.cnblogs.com/kerrycode/p/4983085.html 阅读全文
posted @ 2018-11-24 10:20 以沫浅夏 阅读(1705) 评论(0) 推荐(0) 编辑
摘要: 原文连接: https://documentation.devexpress.com/WindowsForms/DevExpress.XtraEditors.LabelControl.class https://documentation.devexpress.com/WindowsForms/De 阅读全文
posted @ 2018-11-20 10:38 以沫浅夏 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: https://7gx64iks.mirror.aliyuncs.com 阅读全文
posted @ 2018-08-25 10:20 以沫浅夏 阅读(195) 评论(0) 推荐(0) 编辑
摘要: public ActionResult GetLargeJsonResult() { return new ContentResult { Content = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(myBigdata), ContentType = "... 阅读全文
posted @ 2018-07-24 15:10 以沫浅夏 阅读(276) 评论(0) 推荐(0) 编辑
摘要: var val = new Int32Converter().IsValid(str) ? int.Parse(str) : default(int?); 阅读全文
posted @ 2018-07-12 09:54 以沫浅夏 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-13 17:10 以沫浅夏 阅读(225) 评论(0) 推荐(0) 编辑
摘要: var types = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(ISecurity)))) .ToArray(); 阅读全文
posted @ 2018-01-24 13:22 以沫浅夏 阅读(617) 评论(0) 推荐(0) 编辑