From e6cb8358291f0b679fb9eacef6257d2b2957070b Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 13:52:20 +0100 Subject: [PATCH] Add `Endpoint` entity class for database mapping Introduced a new `Endpoint` class in the `ReC.Domain.Entities` namespace to represent the `TBREC_CFG_ENDPOINT` database table. - Added Entity Framework annotations to map properties to database columns. - Defined properties for `Id`, `Active`, `Description`, `Uri`, `AddedWho`, `AddedWhen`, `ChangedWho`, and `ChangedWhen`. - Configured `Id` as the primary key with auto-generated values. --- src/ReC.Domain/Entities/Endpoint.cs | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/ReC.Domain/Entities/Endpoint.cs diff --git a/src/ReC.Domain/Entities/Endpoint.cs b/src/ReC.Domain/Entities/Endpoint.cs new file mode 100644 index 0000000..2ac1004 --- /dev/null +++ b/src/ReC.Domain/Entities/Endpoint.cs @@ -0,0 +1,35 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace ReC.Domain.Entities; + +[Table("TBREC_CFG_ENDPOINT")] +public class Endpoint +{ + [Key] + [Column("GUID")] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + public long? Id { get; set; } + + [Column("ACTIVE")] + public bool? Active { get; set; } + + [Column("DESCRIPTION")] + public string? Description { get; set; } + + [Column("URI")] + public string? Uri { get; set; } + + [Column("ADDED_WHO")] + public string? AddedWho { get; set; } + + [Column("ADDED_WHEN")] + public DateTime? AddedWhen { get; set; } + + [Column("CHANGED_WHO")] + public string? ChangedWho { get; set; } + + [Column("CHANGED_WHEN")] + public DateTime? ChangedWhen { get; set; } +} \ No newline at end of file