上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: /// <summary> /// DES加密/解密类。 /// </summary> public class DESEncrypt { #region 加密 /// <summary> /// 加密 /// </summary> /// <param name="Text"></param> / 阅读全文
posted @ 2020-06-11 13:10 tommy~hi 阅读(237) 评论(0) 推荐(0)
摘要: # 允许最大连接数max_connections=2000# 服务端使用的字符集默认为8比特编码的latin1字符集character_set_server=utf8# insert语句大小bulk_insert_buffer_size = 256M# 服务所能处理的请求包的最大大小max_allo 阅读全文
posted @ 2020-06-11 13:08 tommy~hi 阅读(124) 评论(0) 推荐(0)
摘要: public string SaveServerFile(string tempfilename, string filepath, string filename, bool isLocal = false) { #region MyRegion bool UseWeb = bool.Parse( 阅读全文
posted @ 2020-04-20 17:15 tommy~hi 阅读(151) 评论(0) 推荐(0)
摘要: /// <summary> /// Http 请求 通用来 /// </summary> public abstract class HttpRequest { public static string HttpAccept_JSON_UTF8 = "application/json;charset 阅读全文
posted @ 2020-01-13 10:28 tommy~hi 阅读(534) 评论(0) 推荐(0)
摘要: public class Monitor { /// <summary> /// POST请求 /// </summary> /// <param name="url"></param> /// <param name="obj"></param> /// <param name="contentT 阅读全文
posted @ 2020-01-13 10:25 tommy~hi 阅读(1502) 评论(0) 推荐(0)
摘要: 1 #region model<->json(对象和json互转) 2 #region DataContractJsonSerializer 3 public static string SerializeDataContractJson<T>(T obj) 4 { 5 DataContractJs 阅读全文
posted @ 2019-12-05 15:28 tommy~hi 阅读(210) 评论(0) 推荐(0)
摘要: 大多时候我们采用一下方式进行依赖注入 随着业务的增长,接口跟实现类会越来越多,还需要手动一个个的注册依赖项,有时候会出现忘了写配置,导致程序报错,如果是多人开发,可能还会导致代码冲突,后期维护起来相对来说比较麻烦。 使用Autofac自动注入 1、安装Autofac.Extensions.Depen 阅读全文
posted @ 2019-12-05 15:16 tommy~hi 阅读(2196) 评论(0) 推荐(1)
摘要: 1 public static class EnumHelper 2 { 3 /// <summary> 4 /// 获取枚举变量值的 Description 属性 5 /// </summary> 6 /// <param name="obj">枚举变量</param> 7 /// <param 阅读全文
posted @ 2019-12-05 14:05 tommy~hi 阅读(691) 评论(0) 推荐(0)
摘要: /// <summary> /// 记录操作日志相关 /// </summary> /// <typeparam name="T"></typeparam> public class LogManager<T> where T : new() { static Database db = new D 阅读全文
posted @ 2019-12-04 15:20 tommy~hi 阅读(809) 评论(0) 推荐(0)
摘要: ASP.NET Core 3.0 WebApi中使用Swagger生成API文档简介 当一个WebApi完成之后,书写API文档是一件非常头疼的事,因为不仅要写得清楚,能让调用接口的人看懂,又是非常耗时耗力的一件事。在之前的一篇随笔中(https://www.cnblogs.com/taotaozh 阅读全文
posted @ 2019-11-21 19:25 tommy~hi 阅读(250) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页