摘要: #region 订单号生成(支持每秒1000个并发) private static object locker = new object(); private static int sn = 0; public static string GetOrderNO() { lock (locker) { if (sn == 999) sn = 0; else ... 阅读全文
posted @ 2019-06-14 17:26 拍空格 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 记录一下Linq实现多列排序的问题 阅读全文
posted @ 2019-05-05 19:51 拍空格 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 动态构造Lambda表达式 阅读全文
posted @ 2018-03-27 00:34 拍空格 阅读(118) 评论(0) 推荐(0) 编辑
摘要: MVC全局实现异常处理 阅读全文
posted @ 2018-03-23 23:49 拍空格 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 修改自增列起始值,仅当使用了列列表并且 IDENTITY_INSERT 为 ON 时,才能为表'******'中的标识列指定显式值 阅读全文
posted @ 2018-03-20 10:37 拍空格 阅读(1245) 评论(0) 推荐(0) 编辑
摘要: 统计指定时间段内生日的用户 阅读全文
posted @ 2018-03-10 16:19 拍空格 阅读(158) 评论(0) 推荐(0) 编辑
摘要: SQL开关功能记录 阅读全文
posted @ 2018-03-08 16:56 拍空格 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 枚举对象实现 DropDownList 的转换操作二 阅读全文
posted @ 2017-11-29 11:06 拍空格 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 枚举对象实现 DropDownList 的转换操作一 阅读全文
posted @ 2017-11-29 10:50 拍空格 阅读(170) 评论(0) 推荐(0) 编辑
摘要: $("#mainTable").dataTable({ /* * sErrMode * 错误信息显示方式 * 分别为alert和throw,默认为alert */ "sErrMode": "throw", /* ... 阅读全文
posted @ 2017-11-28 14:38 拍空格 阅读(3132) 评论(3) 推荐(2) 编辑