예제 #1
0
        public Bank Insert_Bank()
        {
            Bank bank = new Bank();
            bank.No = "1";
            bank.Name = "Citibank";

            Bank result = bankDao.Insert(bank);
            return result;
        }
예제 #2
0
        public IEnumerable<Bank> Insert_10_000_Bank()
        {
            int count = 10000;
            IList<Bank> bankList = new List<Bank>(count);
            for (int i = 0; i < count; i++)
            {
                Bank bank = new Bank();
                bank.No = i.ToString();
                bank.Name = "Citibank " + i;

                bankList.Add(bank);
            }

            IEnumerable<Bank> result = bankDao.Insert(bankList);
            return result;
        }