標籤:1.注釋文法:--,#2.尾碼是.sql的檔案是資料庫查詢檔案3.儲存查詢4.在資料庫裡面 列有個名字叫欄位 行有個名字叫記錄CRUD操作:create 建立(添加)read 讀取update 修改delete 刪除1、添加資料insert into Info values(‘p009‘,‘張三‘,1,‘n001‘,‘2016-8-30 12:9:8‘) ; 給特定的列添加資料insert into Info (code,name)
標籤:1.using指令using+命名空間,這種方法基本學習過C#的都用過,好處在於,寫代碼的時候不需要指定詳細的命名空間using System.Windows.Media; using System.Windows.Media.Imaging;2.using語句是用來簡化資源釋放的,在一定的範圍內有效,除了這個範圍時,自動調用IDisposable釋放掉,當然並不是所有的類都適用,只有實現了IDisposable介面的類才可以使用 using (SqlConnection
標籤:1 代碼 1 //^[0-9] 檢測字串的首個字元是否是數字 2 3 using System; 4 using System.Collections.Generic; 5 using System.Linq; 6 using System.Net; 7 using System.Text; 8 using System.Text.RegularExpressions; 9 using System.Threading.Tasks;10 11 namespace
標籤:In C#, extension methods enable you to add methods to existing class without creating a new derived class.Extension methods 要求:Define a static class to contain extension method. This class must be visible to client code.Implement the extension
標籤:1 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Net; 5 using System.Text; 6 using System.Text.RegularExpressions; 7 using System.Threading.Tasks; 8 9 namespace ConsoleApplication710 {11 class
標籤:1 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Net; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication7 9 {10 class Program11 {12 static void
標籤:1 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Net; 5 using System.Text; 6 using System.Text.RegularExpressions; 7 using System.Threading.Tasks; 8 9 namespace ConsoleApplication710 {11 class
標籤:0 探測的檔案夾 1 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication2 9 {10 class Program11 {12