예제 #1
0
        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());
        }
예제 #2
0
 partial void DeleteTabl1(Tabl1 instance);
예제 #3
0
 partial void UpdateTabl1(Tabl1 instance);
예제 #4
0
 partial void InsertTabl1(Tabl1 instance);