Example #1
0
        private void GenerateMetrics(CsvFileEx file)
        {
            this.Metricas = new MD_Metricas();
            AddMetrics(file.RootCategory.columnMetrics, null);
            int index = 1;

            foreach (Categoria cat in file.RootCategory.categoriasfilhas)
            {
                AddCategory(cat, ref index, null);
            }
        }
Example #2
0
 public Metadata(CsvFile file, CsvFileEx fileEx, DateTime timeInit, DataAnnotationDBContext _context)
 {
     Nome        = file.FileNameDisplay;
     NumLinhas   = file.RowsCount.Value;
     NumColunas  = file.ColumnsCount.Value;
     DataGeracao = DateTime.Now;
     GenerateGeoDivisoesList(fileEx.RowGeographic);
     GenerateDimensionsList(fileEx.Columns);
     GenerateMetrics(fileEx);
     file.AnalysisDuration       = DateTime.Now.Subtract(timeInit);
     file.AnalysisCompletionTime = DateTime.Now;
     _context.CsvFile.Update(file);
     _context.SaveChanges();
 }