From 293044bec36185f41aa75b906befe97487e944c4 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 19 Jan 2026 16:21:58 +0100 Subject: [PATCH] Handle envelope type with framework-specific properties Add conditional logic to map "ENVELOPE_TYPE" to either an int? EnvelopeTypeId (for .NET Framework) or a type-safe EnvelopeSigningType SigningType (for .NET), supporting both legacy and modern approaches. --- EnvelopeGenerator.Domain/Entities/Envelope.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/EnvelopeGenerator.Domain/Entities/Envelope.cs b/EnvelopeGenerator.Domain/Entities/Envelope.cs index ebe15c83..5247c114 100644 --- a/EnvelopeGenerator.Domain/Entities/Envelope.cs +++ b/EnvelopeGenerator.Domain/Entities/Envelope.cs @@ -104,8 +104,20 @@ public class Envelope [Column("REMINDER_INTERVAL_DAYS")] public int? ReminderIntervalDays { get; set; } +#if NETFRAMEWORK [Column("ENVELOPE_TYPE")] public int? EnvelopeTypeId { get; set; } +#elif NET + + private EnvelopeSigningType _signingType = EnvelopeSigningType.WetSignature; + + [Column("ENVELOPE_TYPE")] + public EnvelopeSigningType SigningType + { + get => _signingType; + set => _signingType = value.Normalize(); + } +#endif [Column("CERTIFICATION_TYPE")] public int? CertificationType { get; set; }