Map envelope DocResult and expose burned-state indicator

This commit is contained in:
2026-10-22 01:35:06 +02:00
parent 07ce6ccfe1
commit 8929c517fe
2 changed files with 11 additions and 1 deletions

View File

@@ -137,7 +137,6 @@ namespace EnvelopeGenerator.Domain.Entities
= false; = false;
#endif #endif
[NotMapped]
[Column("DOC_RESULT")] [Column("DOC_RESULT")]
public byte[] public byte[]
#if nullable #if nullable

View File

@@ -3,6 +3,12 @@
public interface IEnvelope public interface IEnvelope
{ {
int? EnvelopeTypeId { get; set; } int? EnvelopeTypeId { get; set; }
byte[]
#if nullable
?
#endif
DocResult { get; }
} }
public static class EnvelopeExtensions public static class EnvelopeExtensions
@@ -16,5 +22,10 @@
{ {
return envelope.EnvelopeTypeId != 2; return envelope.EnvelopeTypeId != 2;
} }
public static bool IsBurned(this IEnvelope envelope)
{
return envelope.DocResult != null;
}
} }
} }