摘要:
View Code 1 using System; 2 using System.Data; 3 using System.Data.SqlClient; 4 using System.Collections.Generic; 5 using System.Linq; 6 public class StudyModel 7 { 8 public static void Main() 9 {10 string strcon = "server = .;database = blog;uid = sa;pwd = 1;";11 SqlConnect... 阅读全文
摘要:
View Code 1 using System; 2 using System.Data; 3 using System.Data.SqlClient; 4 public class Helper 5 { 6 public static void Main() 7 { 8 //连接字符串 9 string strcon = "server = .;database = blog;uid = sa;pwd = 1"; 10 SqlHelper helper = new SqlHelper(strcon); 11... 阅读全文
摘要:
View Code 1 using System; 2 using System.Data; 3 using System.Data.SqlClient; 4 public class StudyReader 5 { 6 public static void Main() 7 { 8 //连接字符串 9 string strcon = "server = .;database = blog;uid = sa;pwd = 1";10 SqlConnection con = new SqlConnection (strcon);11... 阅读全文