Exemplo n.º 1
0
        public void TestMethod1()
        {
            var list = new List <Account>();

            for (var index = 0; index < 1000000; index++)
            {
                var account = new Account();
                account.AccountName = "liis" + index;
                account.Password    = "******" + index;
                account.CreateDate  = DateTime.Now;
                account.UpdateDate  = DateTime.Now;
                account.DeleteFlg   = DeleteFlg.N;
                list.Add(account);
            }
            //accountBll.AddRange(list);
            accountBll.BulkInsert(list);
        }