2017年10月16日

SqlServer_小工具_STUFF负Index支持

摘要: ExtStuff 阅读全文

posted @ 2017-10-16 02:26 Thancoo 阅读(203) 评论(0) 推荐(0) 编辑

SqlServer_小工具_时间格式化

摘要: datetimeformat 阅读全文

posted @ 2017-10-16 02:24 Thancoo 阅读(511) 评论(0) 推荐(0) 编辑

SqlServer_小工具_字符填充(左)

摘要: PaddingLeft 阅读全文

posted @ 2017-10-16 02:23 Thancoo 阅读(625) 评论(0) 推荐(0) 编辑

SqlServer_小工具_获取北京时间

摘要: CREATE FUNCTION GetLocalDate() RETURNS DATETIME AS BEGIN DECLARE @bjdate DATETIME; SELECT @bjdate=SWITCHOFFSET(SYSDATETIMEOFFSET(), '+08:00'); RETURN 阅读全文

posted @ 2017-10-16 02:21 Thancoo 阅读(745) 评论(0) 推荐(0) 编辑

2017年5月5日

JS写入Json到CSV并下载

摘要: json转化成CSV,自动下载。 阅读全文

posted @ 2017-05-05 11:05 Thancoo 阅读(2457) 评论(0) 推荐(0) 编辑

2017年3月20日

写入数据到CSV

摘要: DownloadCSVAsStreame<T>(IList<T> param, string sheetname = null) where T : new() 基础依据: CSV格式为 cell1,cell2,cell3 \r\n cell1,cell2,cell3 注意: CSV是用符号分割ce 阅读全文

posted @ 2017-03-20 10:25 Thancoo 阅读(1643) 评论(0) 推荐(0) 编辑

写入数据到Excel

摘要: DownloadExcelAsStreame<T>(IList<T> param, string sheetname=null) where T : new() 依赖: |-NPOI |-Newtonsoft 备注: 这里为了方便,么有自己定义Attribute,用Josn的Attribute来给类 阅读全文

posted @ 2017-03-20 10:17 Thancoo 阅读(405) 评论(0) 推荐(0) 编辑

批量插入数据

摘要: 主要命名空间 using System.Data.SqlClient; |-SqlBulkCopy |-SqlConnection |-SqlTransaction BatchInsert<T>(List<T> toList, SqlRowsCopiedEventHandler resulthand 阅读全文

posted @ 2017-03-20 10:09 Thancoo 阅读(235) 评论(0) 推荐(0) 编辑

2017年2月1日

Json填充Object工具

摘要: using System; using System.Collections.Generic; using System.Text.RegularExpressions; using Campaign.Commons.ConstParam; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Campaign.Commons... 阅读全文

posted @ 2017-02-01 21:56 Thancoo 阅读(583) 评论(0) 推荐(0) 编辑

Json|XMl|Object互相转化-小工具

摘要: 1 using Newtonsoft.Json; 2 using System; 3 using System.IO; 4 using System.Text; 5 using System.Xml; 6 using System.Xml.Serialization; 7 8 public stat 阅读全文

posted @ 2017-02-01 21:48 Thancoo 阅读(1310) 评论(0) 推荐(0) 编辑

导航