From 56c65b6fbbb67c3b8a5bb44bb7b15a2479fb6c2c Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 6 Mar 2026 13:22:22 +0100 Subject: [PATCH] Add new properties to Config entity with mappings Added DocumentPath, AddedWhen, ChangedWhen, Guid, DefTfaEnabled, and DefTfaWithPhone properties to the Config entity, each mapped to corresponding database columns with appropriate data types and attributes. Also included a conditional using directive for System under NETFRAMEWORK. --- EnvelopeGenerator.Domain/Entities/Config.cs | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/EnvelopeGenerator.Domain/Entities/Config.cs b/EnvelopeGenerator.Domain/Entities/Config.cs index fe011b68..c3645ad8 100644 --- a/EnvelopeGenerator.Domain/Entities/Config.cs +++ b/EnvelopeGenerator.Domain/Entities/Config.cs @@ -1,11 +1,17 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; +#if NETFRAMEWORK +using System; +#endif namespace EnvelopeGenerator.Domain.Entities { [Table("TBSIG_CONFIG", Schema = "dbo")] public class Config { + [Column("DOCUMENT_PATH", TypeName = "nvarchar(256)")] + public string DocumentPath { get; set; } + [Column("SENDING_PROFILE", TypeName = "int")] [Required] public int SendingProfile { get; set; } @@ -19,5 +25,24 @@ namespace EnvelopeGenerator.Domain.Entities [Column("EXPORT_PATH", TypeName = "nvarchar(256)")] public string ExportPath { get; set; } + + [Column("ADDED_WHEN", TypeName = "datetime")] + [Required] + public DateTime AddedWhen { get; set; } + + [Column("CHANGED_WHEN", TypeName = "datetime")] + public DateTime? ChangedWhen { get; set; } + + [Column("GUID", TypeName = "tinyint")] + [Required] + public byte Guid { get; set; } + + [Column("DEF_TFA_ENABLED", TypeName = "bit")] + [Required] + public bool DefTfaEnabled { get; set; } + + [Column("DEF_TFA_WITH_PHONE", TypeName = "bit")] + [Required] + public bool DefTfaWithPhone { get; set; } } } \ No newline at end of file