public Bank Insert_Bank() { Bank bank = new Bank(); bank.No = "1"; bank.Name = "Citibank"; Bank result = bankDao.Insert(bank); return result; }
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; }