Пример #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("提交失败"); }
 }
Пример #2
0
 partial void Deletescore(score instance);
Пример #3
0
 partial void Updatescore(score instance);
Пример #4
0
 partial void Insertscore(score instance);