From 74f4d06031d3bba7302c8d2c633048ad7adc03d7 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 4 Dec 2025 14:32:36 +0100 Subject: [PATCH] Add RootAction navigation property to RecActionView Introduced a new nullable `RootAction` property in the `RecActionView` class. This property is decorated with the `[ForeignKey("Id")]` attribute, establishing a foreign key relationship with the `Id` property. This change enables the `RecActionView` entity to reference an optional `RecAction` entity, enhancing the data model and supporting entity relationships. --- src/ReC.Domain/Entities/RecActionView.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ReC.Domain/Entities/RecActionView.cs b/src/ReC.Domain/Entities/RecActionView.cs index 1866778..1bfb97b 100644 --- a/src/ReC.Domain/Entities/RecActionView.cs +++ b/src/ReC.Domain/Entities/RecActionView.cs @@ -17,6 +17,9 @@ public class RecActionView [Column("ACTION_ID")] public required long Id { get; set; } + [ForeignKey("Id")] + public RecAction? RootAction { get; set; } + [Column("PROFILE_ID")] public long? ProfileId { get; set; }