public void MegaLinqToSql() { DateTime d = DateTime.Now; var pr = new ProbaDataContext(); for (int i = 10; i <= 10000; ++i) { var tabl1 = new Tabl1 { s1 = "aaa", s2 = "bbb", n1 = i }; pr.Tabl1s.InsertOnSubmit(tabl1); } pr.SubmitChanges(); MessageBox.Show(DateTime.Now.Subtract(d).ToString()); }
partial void DeleteTabl1(Tabl1 instance);
partial void UpdateTabl1(Tabl1 instance);
partial void InsertTabl1(Tabl1 instance);