private void btnAddLinq_Click(object sender, EventArgs e) { ContexttestTableService service = new ContexttestTableService(); testtable table = new testtable(); table.col1 = "99999"; table.col2 = "000000"; service.Save(table); MessageBox.Show("增加数据成功!"); }