Beispiel #1
0
        public void eee1InsertFullCustomers()
        {
            int numberOfFullCustsIn1000s = 200;

            ScriptMaker sm = new ScriptMaker();
            int maxCustNumber = per.CountRowsInTable("customers");

            List<string> fullCustomersScript = sm.MakeFullCustomersIn1000s(numberOfFullCustsIn1000s, maxCustNumber);
            int newMaxNumberOfcusts = maxCustNumber + numberOfFullCustsIn1000s * 1000;
            System.IO.File.WriteAllLines(PATH + FILE_NAME, fullCustomersScript);
            per.InsertBatch(fullCustomersScript);
        }