From 8c1dd9c40d844bdc5883b3a2d5838d3e29ec0d79 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 11 Jun 2026 23:03:35 +0200 Subject: [PATCH] Make boolean properties nullable in Envelope class Changed `SendReminderEmails`, `UseAccessCode`, and `TfaEnabled` properties from non-nullable `bool` to nullable `bool?` to allow representation of `null` values. Added conditional initialization of `TfaEnabled` to `false` for `NETFRAMEWORK` target. --- EnvelopeGenerator.Domain/Entities/Envelope.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EnvelopeGenerator.Domain/Entities/Envelope.cs b/EnvelopeGenerator.Domain/Entities/Envelope.cs index 5ba90338..9b1f18a3 100644 --- a/EnvelopeGenerator.Domain/Entities/Envelope.cs +++ b/EnvelopeGenerator.Domain/Entities/Envelope.cs @@ -94,7 +94,7 @@ namespace EnvelopeGenerator.Domain.Entities public string Language { get; set; } [Column("SEND_REMINDER_EMAILS")] - public bool SendReminderEmails { get; set; } + public bool? SendReminderEmails { get; set; } [Column("FIRST_REMINDER_DAYS")] public int? FirstReminderDays { get; set; } @@ -114,7 +114,7 @@ namespace EnvelopeGenerator.Domain.Entities public int? CertificationType { get; set; } [Column("USE_ACCESS_CODE")] - public bool UseAccessCode { get; set; } + public bool? UseAccessCode { get; set; } [Column("FINAL_EMAIL_TO_CREATOR")] public int? FinalEmailToCreator { get; set; } @@ -132,7 +132,7 @@ namespace EnvelopeGenerator.Domain.Entities public User User { get; set; } [Column("TFA_ENABLED")] - public bool TfaEnabled { get; set; } + public bool? TfaEnabled { get; set; } #if NETFRAMEWORK = false; #endif