摘要:
示例代码 using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; public static class ControlDrag { static Dictio 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Runtime.Serialization; using Sy 阅读全文
摘要:
//效率,dapper add list 8000条 40秒,它只要1秒多 public static int SqlBulkCopy<T>(this DbConnection conn, List<T> list) where T : Key { var type = typeof(T); var 阅读全文
摘要:
//说明//使用场景:对接api,返回json结果,直接转换C# class//如何使用:复制下面js代码在浏览器控制台执行 ` "order_item_id": "28504637", "item_id": "3695819", "item_title": "小茵熊物料包 测试链接勿拍", "cu 阅读全文
摘要:
select spIdfrom master..SysProcesseswhere db_Name(dbID) = 'Tb_axxxxx'and spId <> @@SpIdand dbID <> 0 --先查后解除 declare @spid intSet @spid = 149 --锁表进程de 阅读全文
摘要:
//引用IWshRuntimeLibrary COM组件-Windows Script Host Object Model /// <summary> /// 创建快捷方式的类 /// </summary> /// <remarks></remarks> public class ShortCutH 阅读全文
摘要:
class WindowHookerManager { static WindowHooker hooker = new WindowHooker(); public static void SetAllFormIcon() { hooker.OnHookControl += (o, e) => { 阅读全文
摘要:
with a as( select * from( select 1 userId , '天津' province union select 1 userId , '北京' union select 1 userId , '上海' union select 2 userId , '北京' union 阅读全文
摘要:
ps:提高了编程效率,而且相当好用,自己随时可以添加新的扩展 public static class CommomExtentions { public static bool IsNullOrEmpty(this string str) { return string.IsNullOrEmpty( 阅读全文
摘要:
Bitmap b = new Bitmap(Server.MapPath(ppath)); Stream ms = new MemoryStream(); b.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); 原文: https://www.cnb 阅读全文