public static void GenerateReportDataOnly() { List <ReportItem> items = new List <ReportItem>(); ScanDataBaseManager.DeleteReportItem(); var allAv = JavDataBaseManager.GetAllAV(); var allMatch = GenerateExistingAVs(); Report report = new Report(); report.ExtensionModel = new Dictionary <string, int>(); report.TotalCount = allAv.Count; var reportId = ScanDataBaseManager.InsertReport(report); report.ReportId = reportId; int process = 0; foreach (var av in allAv) { ProcessReportType(av, allMatch, report, items); process++; Console.WriteLine(process + " / " + allAv.Count); } ; ScanDataBaseManager.BatchInserReportItem(items); ScanDataBaseManager.UpdateReport(report); ScanDataBaseManager.UpdateReportFinish(reportId); }