From ec975a2bc3c53e2f836ae821c31551709557036b Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 1 Aug 2025 14:04:15 +0200 Subject: [PATCH] Add StateHistory property to PObject class Introduces a new `StateHistory` property in the `PObject` class within `PObject.cs`. This property is decorated with the `[ForeignKey("ObjStateId")]` attribute and is of type `IEnumerable?`, allowing it to store a collection of `PObjectStateHist` objects. It is initialized to an empty array using `Array.Empty()`. --- src/WorkFlow.Domain/Entities/PObject.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/WorkFlow.Domain/Entities/PObject.cs b/src/WorkFlow.Domain/Entities/PObject.cs index b441493..ba0c312 100644 --- a/src/WorkFlow.Domain/Entities/PObject.cs +++ b/src/WorkFlow.Domain/Entities/PObject.cs @@ -27,4 +27,7 @@ public class PObject [ForeignKey("ObjStateId")] public virtual PObjectState? State { get; set; } + + [ForeignKey("ObjStateId")] + public virtual IEnumerable? StateHistory { get; set; } = Array.Empty(); } \ No newline at end of file