private void button1_Click(object sender, EventArgs e) { //linq每个都要实例化 linq = new DataClasses1DataContext(connectionStr); USERS1 user = new USERS1(); user.USERS1_ID = textBox1.Text; user.USERS1_NAME = textBox2.Text; user.USERS1_SAX = textBox3.Text; linq.USERS1.InsertOnSubmit(user); MessageBox.Show("新增成功!"); }
partial void DeleteUSERS1(USERS1 instance);
partial void UpdateUSERS1(USERS1 instance);
partial void InsertUSERS1(USERS1 instance);