上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: public class EpplusExcel { /// <summary> /// 导出Excel /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dataSource"></param> /// <pa 阅读全文
posted @ 2020-12-11 17:16 tommy~hi 阅读(206) 评论(0) 推荐(1) 编辑
摘要: # GitHub Start 52.74.223.119 github.com 192.30.253.119 gist.github.com 54.169.195.247 api.github.com 185.199.111.153 assets-cdn.github.com 151.101.76. 阅读全文
posted @ 2020-12-10 10:57 tommy~hi 阅读(979) 评论(0) 推荐(0) 编辑
摘要: 有两种方式 1.微软自带的方式: .Net Core的应用程序部署 2.利用NSSM注册服务 1) 下载nssm : http://www.nssm.cc/download 2)将文件解压到你要注册成服务的发布文件夹下 创建一个文件夹专门存放你发布的代码。(FunMthod)。vs发布的时候可以勾选 阅读全文
posted @ 2020-12-07 14:59 tommy~hi 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 雪花Id,全局唯一,性能高,取代GUID /// </summary> public struct SnowflakeId { public SnowflakeId(long id) { Id = id; var numBin = Convert.ToString 阅读全文
posted @ 2020-11-25 15:41 tommy~hi 阅读(210) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 文件操作帮助类 /// </summary> public class FileHelper { #region 检测指定目录是否存在 /// <summary> /// 检测指定目录是否存在,如果存在则返回true。 /// </summary> /// <pa 阅读全文
posted @ 2020-11-21 10:52 tommy~hi 阅读(86) 评论(0) 推荐(0) 编辑
摘要: public void ExistsDemo() { string userId = "123456"; string userName = "admin"; DALDb db = new DALDb(); // sql 语句 PetaPoco.Sql sql = PetaPoco.Sql.Buil 阅读全文
posted @ 2020-09-29 17:22 tommy~hi 阅读(362) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// http 同步请求类 /// 如果类库中没有提供设置HttpWebRequest参数的方法,可以实现OnCreatedRequest回调,自己再去设置 /// 有任何错误可以判断Exception类型,获取相应错误信息 /// </summary> public 阅读全文
posted @ 2020-09-09 09:54 tommy~hi 阅读(137) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 处理数据类型转换,数制转换、编码转换相关的类 /// </summary> public class ConvertHelper { #region 补足位数 /// <summary> /// 指定字符串的固定长度,如果字符串小于固定长度, /// 则在字符串的 阅读全文
posted @ 2020-09-07 09:07 tommy~hi 阅读(178) 评论(0) 推荐(0) 编辑
摘要: public static class StringExtension { /// <summary> /// 分割字符串 /// </summary> /// <param name="str"></param> /// <param name="length">分割长度,默认4</param> 阅读全文
posted @ 2020-09-07 09:00 tommy~hi 阅读(169) 评论(0) 推荐(0) 编辑
摘要: DataTable table = new DataTable(); mdTable mdTable = new mdTable(); //根据model构建table table = DbBulkExtend.GetModelProperty(mdTable); //调用批量插入 DbBulkEx 阅读全文
posted @ 2020-08-28 10:59 tommy~hi 阅读(231) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页