摘要:
private void btnsearch_Click(object sender, EventArgs e) { if (txtSearch.Text != "") { this.dataGridView1.DataSource = null; string st... 阅读全文
摘要:
private void btnadd_Click(object sender, EventArgs e) { string str = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Test;Integrated Security=True;Connect Timeout=30;Encrypt... 阅读全文
摘要:
string str = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Test;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetF... 阅读全文
摘要:
//定义CSV文件所对应的实体类 public class example { public int t1; public string t2; public string t3; public static example FromCsv(string csvLine) { string[] va 阅读全文
摘要:
https://social.msdn.microsoft.com/Forums/windows/en-US/e64994d6-413e-41e3-976b-e062fe8074b0/passing-data-between-two-applications-using-cnet?forum=win 阅读全文
摘要:
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... 阅读全文
摘要:
private static bool CheckDatabaseExists( string databaseName) { { string sqlCreateDBQuery; bool result = false; try { SqlConnection tmpConn = new SqlC 阅读全文
摘要:
datetiemde的简写方式 DateTime CurrentDateTime = DateTime.Now; string CurrentDate = CurrentDateTime.ToShortDateString(); 阅读全文