From 7e1ccc21ab3b4a6d3bd22c1a04516ed9f73afb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Mon, 24 May 2021 16:31:02 +0500 Subject: [PATCH] fix report model error --- AsbCloudDb/Model/Report.cs | 2 +- AsbCloudInfrastructure/Services/ReportService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AsbCloudDb/Model/Report.cs b/AsbCloudDb/Model/Report.cs index ad705154..03ac060a 100644 --- a/AsbCloudDb/Model/Report.cs +++ b/AsbCloudDb/Model/Report.cs @@ -21,7 +21,7 @@ namespace AsbCloudDb.Model public DateTime Begin { get; set; } [Column("end"), Comment("timestamp with time zone")] public DateTime End { get; set; } - [Column("step", TypeName = "размер шага в секундах")] + [Column("step"), Comment("размер шага в секундах")] public int Step { get; set; } [Column("format"), Comment("Формат отчета")] public int Format { get; set; } diff --git a/AsbCloudInfrastructure/Services/ReportService.cs b/AsbCloudInfrastructure/Services/ReportService.cs index 735ad2a0..0dbfa1c9 100644 --- a/AsbCloudInfrastructure/Services/ReportService.cs +++ b/AsbCloudInfrastructure/Services/ReportService.cs @@ -38,7 +38,7 @@ namespace AsbCloudInfrastructure.Services using (var context = new AsbCloudDbContext(optionsBuilder.Options)) { var generator = GetReportGenerator(wellId, begin, end, stepSeconds, format, context); - generator.OnProgress += (s,e)=>progressHandler.Invoke(e.progress, e.operation, id); + generator.OnProgress += (s,e) => progressHandler.Invoke(e.progress, e.operation, id); generator.Make(); } });