Beispiel #1
0
        internal IEnumerable <BackupFileInfo> GetBackupFiles(int backupID)
        {
            DataRow backupRow = _Backups.Rows.Find(backupID);

            foreach (DataRow backupFileRow in backupRow.GetChildRows(_backupsRelation))
            {
                DataRow        fileRow    = backupFileRow.GetParentRow(_filesRelation);
                BackupFileInfo backupFile = new BackupFileInfo();
                backupFile.FileEntryID    = (int)fileRow["FileEntryID"];
                backupFile.FileFullPath   = (string)fileRow["FileFullPath"];
                backupFile.FileDate       = (DateTime)fileRow["FileDate"];
                backupFile.FileSizeBytes  = (long)fileRow["FileSizeBytes"];
                backupFile.FileSHA1       = (string)fileRow["FileSHA1"];
                backupFile.BackupFilePath = (string)fileRow["BackupFilePath"];
                yield return(backupFile);
            }
        }
Beispiel #2
0
        internal IEnumerable<BackupFileInfo> GetBackupFiles(int backupID)
        {
            DataRow backupRow = _Backups.Rows.Find(backupID);

            foreach (DataRow backupFileRow in backupRow.GetChildRows(_backupsRelation))
            {
                DataRow fileRow = backupFileRow.GetParentRow(_filesRelation);
                BackupFileInfo backupFile = new BackupFileInfo();
                backupFile.FileEntryID = (int)fileRow["FileEntryID"];
                backupFile.FileFullPath = (string)fileRow["FileFullPath"];
                backupFile.FileDate = (DateTime)fileRow["FileDate"];
                backupFile.FileSizeBytes = (long)fileRow["FileSizeBytes"];
                backupFile.FileSHA1 = (string)fileRow["FileSHA1"];
                backupFile.BackupFilePath = (string)fileRow["BackupFilePath"];
                yield return backupFile;
            }
        }