11 2021 档案

摘要:单表插入SQL 方式1 #region /// <summary> /// 根据实体数据获取插入SQL /// </summary> /// <typeparam name="T">数据类型</typeparam> /// <param name="tableName">表名称</param> // 阅读全文
posted @ 2021-11-29 18:55 博客YS 阅读(86) 评论(0) 推荐(0) 编辑
摘要:1.深拷贝 应用场景(引用类型):汇总打印数据时,会进行计算,导致软件界面展示数据时,打印后和打印前展示的明细数据不相同。 /// <summary> /// 实体深度复制 /// </summary> /// <typeparam name="T"></typeparam> /// <param 阅读全文
posted @ 2021-11-24 10:56 博客YS 阅读(416) 评论(0) 推荐(0) 编辑
摘要:1.AppConfig配置文件 <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="DbTypeName" value="SQLServer,Oracle,MySQL,DB2" /> <add 阅读全文
posted @ 2021-11-19 19:55 博客YS 阅读(99) 评论(0) 推荐(0) 编辑
摘要:在线.net C#和vb.net 语言互转 https://converter.telerik.com/ https://www.developerfusion.com/tools/ https://www.dotnetspider.com/convert/Csharp-To-Vb.aspx htt 阅读全文
posted @ 2021-11-19 14:48 博客YS 阅读(658) 评论(0) 推荐(0) 编辑
摘要:1.先引用DLL(Newtonsoft.Json.dll),已上传DLL /************************************************* * 描述: * * Author:yuanshuo * Date:2021/11/15 17:14:59 * Update: 阅读全文
posted @ 2021-11-15 17:47 博客YS 阅读(245) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 验证字符串是否IP合法 /// </summary> /// <returns>是IP返回true 负责返回false</returns> private bool IsIP(string ip) { if (cmbIP.Text.Trim() == ".") { 阅读全文
posted @ 2021-11-02 15:41 博客YS 阅读(353) 评论(0) 推荐(0) 编辑
摘要:获取List<string> List<string> ipList = 字符串.Split(new char[] { '截取字符' }, StringSplitOptions.RemoveEmptyEntries).ToList(); 获取List<int> var sNumbers = "1,2 阅读全文
posted @ 2021-11-02 11:17 博客YS 阅读(763) 评论(0) 推荐(0) 编辑

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