摘要:
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
阅读(2095)
评论(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
阅读(382)
评论(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
阅读(2184)
评论(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
阅读(274)
评论(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
阅读(11039)
评论(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
阅读(3561)
评论(0)
推荐(0)
摘要:
datetiemde的简写方式 DateTime CurrentDateTime = DateTime.Now; string CurrentDate = CurrentDateTime.ToShortDateString(); 阅读全文
posted @ 2019-03-15 15:34
JackJu
阅读(164)
评论(0)
推荐(0)