Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     DataClasses1DataContext db = new DataClasses1DataContext();
     score temp = new score();
     temp.Course_id = idbox.Text;
     temp.Student_id = numbox.Text;
     temp.Course_score =Convert.ToInt32(scorebox.Text);
     temp.id = numbox.Text + idbox.Text;
     db.score.InsertOnSubmit(temp);
     try
     {
         db.SubmitChanges();
         MessageBox.Show("提交成功!");
         numbox.Text = "";
         scorebox.Text = "";
     }
     catch { MessageBox.Show("提交失败"); }
 }
Esempio n. 2
0
 partial void Deletescore(score instance);
Esempio n. 3
0
 partial void Updatescore(score instance);
Esempio n. 4
0
 partial void Insertscore(score instance);