From ff10fc6b0ae663a66a6f4d667444df4028b61a85 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 29 Oct 2026 13:35:48 +0100 Subject: [PATCH] Refactor ContractType property in EnvelopeType.cs Added a using directive for `EnvelopeGenerator.Domain.Constants` to utilize constants from that namespace. Changed the `ContractType` property from a nullable integer (`int?`) to a nullable `ContractType` enum or class, enhancing type safety and clarity. --- EnvelopeGenerator.Domain/Entities/EnvelopeType.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Domain/Entities/EnvelopeType.cs b/EnvelopeGenerator.Domain/Entities/EnvelopeType.cs index 58434917..40f7847d 100644 --- a/EnvelopeGenerator.Domain/Entities/EnvelopeType.cs +++ b/EnvelopeGenerator.Domain/Entities/EnvelopeType.cs @@ -1,5 +1,7 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; +using EnvelopeGenerator.Domain.Constants; + #if NETFRAMEWORK using System; #endif @@ -56,7 +58,7 @@ namespace EnvelopeGenerator.Domain.Entities public int? ReminderIntervalDays { get; set; } [Column("CONTRACT_TYPE")] - public int? ContractType { get; set; } + public ContractType? ContractType { get; set; } [NotMapped] public bool TFA_Enabled { get; set; } = false;