摘要: private void btnadd_Click(object sender, EventArgs e) { string str = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Test;Integrated Security=True;Connect Timeout=30;Encrypt... 阅读全文
posted @ 2019-03-15 16:32 JackJu 阅读(2082) 评论(0) 推荐(0) 编辑
摘要: string str = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Test;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetF... 阅读全文
posted @ 2019-03-15 16:16 JackJu 阅读(374) 评论(0) 推荐(0) 编辑
摘要: //定义CSV文件所对应的实体类 public class example { public int t1; public string t2; public string t3; public static example FromCsv(string csvLine) { string[] va 阅读全文
posted @ 2019-03-15 15:50 JackJu 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: https://social.msdn.microsoft.com/Forums/windows/en-US/e64994d6-413e-41e3-976b-e062fe8074b0/passing-data-between-two-applications-using-cnet?forum=win 阅读全文
posted @ 2019-03-15 15:43 JackJu 阅读(268) 评论(0) 推荐(0) 编辑
摘要: using (SqlCommand command2 = new SqlCommand("CREATE TABLE bases(id int IDENTITY(1, 1) PRIMARY KEY not null,basename char(50),category char(10))", conn)) { command2.ExecuteNo... 阅读全文
posted @ 2019-03-15 15:40 JackJu 阅读(11017) 评论(0) 推荐(0) 编辑
摘要: private static bool CheckDatabaseExists( string databaseName) { { string sqlCreateDBQuery; bool result = false; try { SqlConnection tmpConn = new SqlC 阅读全文
posted @ 2019-03-15 15:38 JackJu 阅读(3502) 评论(0) 推荐(0) 编辑
摘要: datetiemde的简写方式 DateTime CurrentDateTime = DateTime.Now; string CurrentDate = CurrentDateTime.ToShortDateString(); 阅读全文
posted @ 2019-03-15 15:34 JackJu 阅读(156) 评论(0) 推荐(0) 编辑