From 36dc9266bcea97cdd6c8290a68c5945371d0937d Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 3 Nov 2025 13:05:24 +0100 Subject: [PATCH] Add ThirdPartyModule entity for 3rd party module tracking - Created ThirdPartyModule class in EnvelopeGenerator.Domain.Entities - Mapped to TBDD_3RD_PARTY_MODULES table with appropriate columns - Added properties: Id, Active, Name, Description, License, Version, AddedWho, AddedWhen, ChangedWho, ChangedWhen - Configured data annotations for primary key, required fields, string lengths, and nullable support - Conditional nullable support based on compilation symbols --- .../Entities/ThirdPartyModule.cs | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 EnvelopeGenerator.Domain/Entities/ThirdPartyModule.cs diff --git a/EnvelopeGenerator.Domain/Entities/ThirdPartyModule.cs b/EnvelopeGenerator.Domain/Entities/ThirdPartyModule.cs new file mode 100644 index 00000000..e54f4a92 --- /dev/null +++ b/EnvelopeGenerator.Domain/Entities/ThirdPartyModule.cs @@ -0,0 +1,73 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +#if NETFRAMEWORK +using System; +#endif + +namespace EnvelopeGenerator.Domain.Entities +{ + [Table("TBDD_3RD_PARTY_MODULES")] + public class ThirdPartyModule + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + [Column("GUID")] + public int Id { get; set; } + + [Required] + [Column("ACTIVE")] + public bool Active { get; set; } + + [Required] + [StringLength(50)] + [Column("NAME")] + public string Name { get; set; } + + [StringLength(500)] + [Column("DESCRIPTION")] + public string +#if nullable + ? +#endif + Description { get; set; } + + [Required] + [Column("LICENSE", TypeName = "varchar(max)")] + public string License { get; set; } + + [Required] + [StringLength(20)] + [Column("VERSION")] + public string Version { get; set; } + + [StringLength(50)] + [Column("ADDED_WHO")] + public string +#if nullable + ? +#endif + AddedWho { get; set; } + + [Column("ADDED_WHEN")] + public DateTime +#if nullable + ? +#endif + AddedWhen { get; set; } + + [StringLength(50)] + [Column("CHANGED_WHO")] + public string +#if nullable + ? +#endif + ChangedWho { get; set; } + + [Column("CHANGED_WHEN")] + public DateTime +#if nullable + ? +#endif + ChangedWhen { get; set; } + } +} \ No newline at end of file