Exemplo n.º 1
0
        private bool SqlOutOfSyncWithDataExportManagerConfiguration(IExtractionResults extractionResults)
        {
            if (extractionResults.SQLExecuted == null)
            {
                throw new Exception("Cumulative Extraction Results for the extraction in which this dataset was involved in does not have any SQLExecuted recorded for it.");
            }

            //if the SQL today is different to the SQL that was run when the user last extracted the data then there is a desync in the SQL (someone has changed something in the catalogue/data export manager configuration since the data was extracted)
            return(!SqlCurrentConfiguration.Equals(extractionResults.SQLExecuted));
        }
Exemplo n.º 2
0
        private bool SqlOutOfSyncWithDataExportManagerConfiguration(IExtractionResults extractionResults)
        {
            if (extractionResults.SQLExecuted == null)
            {
                throw new Exception("Cumulative Extraction Results for the extraction in which this dataset was involved in does not have any SQLExecuted recorded for it.");
            }

            // When using extraction progress the SQL can be whatever you want
            // if the progress date says End then we blindly assume that whatever you
            // executed was legit
            if (SelectedDataSet.ExtractionProgressIfAny != null)
            {
                return(false);
            }

            //if the SQL today is different to the SQL that was run when the user last extracted the data then there is a desync in the SQL (someone has changed something in the catalogue/data export manager configuration since the data was extracted)
            return(!SqlCurrentConfiguration.Equals(extractionResults.SQLExecuted));
        }