会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
那一缕阳光
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
9
下一页
2020年12月11日
Epplus导出excel
摘要: public class EpplusExcel { /// <summary> /// 导出Excel /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dataSource"></param> /// <pa
阅读全文
posted @ 2020-12-11 17:16 tommy~hi
阅读(239)
评论(0)
推荐(1)
2020年12月10日
访问GitHub需要修改hosts
摘要: # 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
阅读(989)
评论(0)
推荐(0)
2020年12月7日
如何将你的.Net Core程序部署成为服务
摘要: 有两种方式 1.微软自带的方式: .Net Core的应用程序部署 2.利用NSSM注册服务 1) 下载nssm : http://www.nssm.cc/download 2)将文件解压到你要注册成服务的发布文件夹下 创建一个文件夹专门存放你发布的代码。(FunMthod)。vs发布的时候可以勾选
阅读全文
posted @ 2020-12-07 14:59 tommy~hi
阅读(1061)
评论(0)
推荐(0)
2020年11月25日
生成雪花Id类
摘要: /// <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
阅读(243)
评论(0)
推荐(0)
2020年11月21日
文件操作帮助类
摘要: /// <summary> /// 文件操作帮助类 /// </summary> public class FileHelper { #region 检测指定目录是否存在 /// <summary> /// 检测指定目录是否存在,如果存在则返回true。 /// </summary> /// <pa
阅读全文
posted @ 2020-11-21 10:52 tommy~hi
阅读(90)
评论(0)
推荐(0)
2020年9月29日
PetaPoco中使用Exists
摘要: 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
阅读(380)
评论(0)
推荐(0)
2020年9月9日
HttpClient类
摘要: /// <summary> /// http 同步请求类 /// 如果类库中没有提供设置HttpWebRequest参数的方法,可以实现OnCreatedRequest回调,自己再去设置 /// 有任何错误可以判断Exception类型,获取相应错误信息 /// </summary> public
阅读全文
posted @ 2020-09-09 09:54 tommy~hi
阅读(147)
评论(0)
推荐(0)
2020年9月7日
处理数据类型转换
摘要: /// <summary> /// 处理数据类型转换,数制转换、编码转换相关的类 /// </summary> public class ConvertHelper { #region 补足位数 /// <summary> /// 指定字符串的固定长度,如果字符串小于固定长度, /// 则在字符串的
阅读全文
posted @ 2020-09-07 09:07 tommy~hi
阅读(192)
评论(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
阅读(175)
评论(0)
推荐(0)
2020年8月28日
BulkInsert批量新增数据记录
摘要: DataTable table = new DataTable(); mdTable mdTable = new mdTable(); //根据model构建table table = DbBulkExtend.GetModelProperty(mdTable); //调用批量插入 DbBulkEx
阅读全文
posted @ 2020-08-28 10:59 tommy~hi
阅读(239)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告