From 5584a82d8f323172535deb21281671f4d1177baf Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 14:06:52 +0100 Subject: [PATCH] Add foreign key relationship to RecAction class Enhanced the `RecAction` class by adding a navigation property (`Endpoint`) to represent the relationship with the `Endpoint` entity. Annotated the `Endpoint` property with the `[ForeignKey("EndpointId")]` attribute to establish the foreign key mapping. This improves the data model by explicitly defining the relationship between `RecAction` and `Endpoint`. --- src/ReC.Domain/Entities/RecAction.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ReC.Domain/Entities/RecAction.cs b/src/ReC.Domain/Entities/RecAction.cs index 28f44b2..375c25f 100644 --- a/src/ReC.Domain/Entities/RecAction.cs +++ b/src/ReC.Domain/Entities/RecAction.cs @@ -25,6 +25,9 @@ public class RecAction [Column("ENDPOINT_ID")] public long? EndpointId { get; set; } + [ForeignKey("EndpointId")] + public Endpoint? Endpoint { get; set; } + [Column("ENDPOINT_AUTH_ID")] public long? EndpointAuthId { get; set; }