Пример #1
0
 public override void writeToDB(asyncsqlthread db, string absoluteFilename)
 {
     using (bulkDBInsert_file bulkxfer = new bulkDBInsert_file(parent, db))
     {
         foreach (updateFile updateFile in GetFiles(absoluteFilename))
         {
             bulkxfer.add(new file(parent, updateFile));
         }
         bulkxfer.finish();
     }
 }
Пример #2
0
        public override void writeToDB(asyncsqlthread db, string absoluteFilename)
        {
            int n = 0;

            using (bulkDBInsert_file bulkxfer = new bulkDBInsert_file(parent, db))
            {
                foreach (updateFile updateFile in GetFiles(absoluteFilename))
                {
                    bulkxfer.add(new file(parent, updateFile));
                    n++;
                }
            }
            Debug.WriteLine($"found {n} files");
        }