Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override ScannedFiles GetFiles()
        {
            FileDeletedDbManager dbManager = new FileDeletedDbManager();

            dbManager.DatabaseType = DatabaseType;
            return(dbManager.Get());
        }
Beispiel #2
0
        /// <summary>
        /// <b>Description:</b>
        /// Accepts file system as parameter, this will save file information to database
        /// of only file which was failed to delete. Since, saving could be to different
        /// table other than next iteration or deleted files, this will help to build
        /// report for those files where were failed to delete.
        /// </summary>
        /// <param name="file"></param>
        public override bool SaveFile(ScannedFile file)
        {
            FileDeletedDbManager dbManager = new FileDeletedDbManager();

            dbManager.DatabaseType  = DatabaseType;
            dbManager.SaveToCSVFile = SaveToCSVFile;
            dbManager.Save(file);
            return(true);
        }