摘要: /// <summary> /// 读取excel文件数据到DataTable /// </summary> /// <param name="filePath"></param> /// <param name="deleteFile"></param> /// <returns></return 阅读全文
posted @ 2020-03-12 10:34 潇潇与偕 阅读(2309) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 功能:解压zip格式的文件。 /// </summary> /// <param name="zipFilePath">压缩文件路径</param> /// <param name="unZipDir">解压文件存放路径,为空时默认与压缩文件同一级目录下,跟压缩文 阅读全文
posted @ 2020-03-12 10:30 潇潇与偕 阅读(532) 评论(0) 推荐(0) 编辑
摘要: /// /// xml转list /// /// 目标对象 /// xml文件地址(绝对路径) /// 节点路径(如:nodes/node) /// public static List XmlToList(string xmlFullpath, string n... 阅读全文
posted @ 2018-09-27 14:27 潇潇与偕 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 一、创建CompareFieldAttribute标识要比较的字段 二、比较操作类 三、单元测试 1、定义测试类 2、单元测试 3、测试结果 测试结果中输出了所有差异字段的相关信息 四、附件下载地址 下载地址 阅读全文
posted @ 2018-06-29 11:04 潇潇与偕 阅读(4773) 评论(0) 推荐(1) 编辑
摘要: using System; using System.Collections.Generic; using System.Data; using System.Reflection; namespace BT.Preservation.Models { public static class ExtendMethod { /// /// Data... 阅读全文
posted @ 2018-06-29 10:22 潇潇与偕 阅读(25066) 评论(0) 推荐(3) 编辑
摘要: using System; using System.Collections.Generic; using System.Data; using System.Reflection; namespace Common { public static class ExtendMethod { // DateTime --> long public ... 阅读全文
posted @ 2018-06-29 10:20 潇潇与偕 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 版本选择MongoDB的版本命名规范如:x.y.z; y为奇数时表示当前版本为开发版,如:2.3.0、2.1.1; y为偶数时表示当前版本为稳定版,如:2.0.1、2.2.0; 目前官网上最新的版本为3.4.6平台选择 生产环境使用32位机器的数据限制2G,在64位机器上坚决要使用64位版本,可以获 阅读全文
posted @ 2018-06-04 16:53 潇潇与偕 阅读(146) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Security.Cryptography; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTest.OtherTest { [TestClass] public class AesClass {... 阅读全文
posted @ 2018-04-11 16:53 潇潇与偕 阅读(26893) 评论(3) 推荐(0) 编辑
摘要: using System; using System.IO; using System.Security.Cryptography; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTest.OtherTest { [TestClass] public cl... 阅读全文
posted @ 2018-04-11 16:39 潇潇与偕 阅读(508) 评论(0) 推荐(0) 编辑
摘要: public class ConvertDBCAndSBC { /// 半角转成全角 /// 半角空格32,全角空格12288 /// 其他字符半角33~126,其他字符全角65281~65374,相差65248 /// /// /// ... 阅读全文
posted @ 2017-09-05 11:22 潇潇与偕 阅读(1042) 评论(0) 推荐(0) 编辑