From 8929c517fe0b165c60ef341c5b672893a22d9df5 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 22 Oct 2026 01:35:06 +0200 Subject: [PATCH] Map envelope DocResult and expose burned-state indicator --- EnvelopeGenerator.Domain/Entities/Envelope.cs | 1 - EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Domain/Entities/Envelope.cs b/EnvelopeGenerator.Domain/Entities/Envelope.cs index 9b1f18a3..ba2f0719 100644 --- a/EnvelopeGenerator.Domain/Entities/Envelope.cs +++ b/EnvelopeGenerator.Domain/Entities/Envelope.cs @@ -137,7 +137,6 @@ namespace EnvelopeGenerator.Domain.Entities = false; #endif - [NotMapped] [Column("DOC_RESULT")] public byte[] #if nullable diff --git a/EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs b/EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs index f4647701..22254dea 100644 --- a/EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs +++ b/EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs @@ -3,6 +3,12 @@ public interface IEnvelope { int? EnvelopeTypeId { get; set; } + + byte[] +#if nullable + ? +#endif + DocResult { get; } } public static class EnvelopeExtensions @@ -16,5 +22,10 @@ { return envelope.EnvelopeTypeId != 2; } + + public static bool IsBurned(this IEnvelope envelope) + { + return envelope.DocResult != null; + } } } \ No newline at end of file