HA

Pgm

sqlserver 事务简单使用 今天第一次在工作中用到事务,在找一个下数量被条件卡住的错误时,是先更新一个表中的数据,在检查数量有没有小于0的,有就要报错。追
Android Studio 函数描述弹出很慢的问题 找到版本对应的目录,将在线查询替换为本地查询,需要在SDKmanager中先下载SDK文档 .AndroidStudio2.2\config\options\jdk.table.xml 将该文件中的http:
Chrome Keep扩展运行出错的问题解决 主要问题还是扩展连接的网址被墙的原因,将其加入代理即可 *.googleapis.com *.googleusercontent.com //跟google翻译的扩展问题一样 //不同在于k
常用命令 # 拉取代码 git pull --all # 提交dev分支到远程仓库 git push origin dev # 将某一个提交的变更应用到代码库 git cherry-pick -n bd61ad98 # 将某区间提交的变更应用到代码库 git cherry-pick -n bd61ad98^..ade56rq1 #
C# 對一個類進行方法上的擴展 & 為方法添加註釋 static class StringExtension { /// <summary> /// 將字符串包裝成數據庫查詢時需要的樣式 /// 一定程度上防止SQL注入?(我覺得可以達到這個
C#獲取窗體寬度、獲取兩個日期的時間差 在窗體改變時改變控件的寬度 private void FormTemp_Resize(object sender, EventArgs e) { Program.log("Width of form is " + this.Width.ToString()); //this.Bounds.Width //下面這個不太清楚得到的是什麼寬度 //System.Windows.Forms.Screen.FromControl(this).Bounds.Width } 獲取兩
C#判斷DataColumn的字段類型 今天做的一個要把表格型數據導入一個 DataTable 中,讀取都是字符串,table 中有字段是數值類型,讀取時Int32
聽說Linq using System.Linq; ... public static void LinqTest() { int[] array = { 1, 5, 2, 10, 7 }; // Select squares of all odd numbers in the array sorted in descending order var results = from x in array where x % 2 == 1 orderby x descending select x * x; foreach (var result in results) { log(result.ToString()); } } //49 25 1