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<PObjectStateHist>?`, allowing it to store a collection of `PObjectStateHist` objects. It is initialized to an empty array using `Array.Empty<PObjectStateHist>()`.
This commit is contained in:
parent
f10f5af541
commit
ec975a2bc3
@ -27,4 +27,7 @@ public class PObject
|
||||
|
||||
[ForeignKey("ObjStateId")]
|
||||
public virtual PObjectState? State { get; set; }
|
||||
|
||||
[ForeignKey("ObjStateId")]
|
||||
public virtual IEnumerable<PObjectStateHist>? StateHistory { get; set; } = Array.Empty<PObjectStateHist>();
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user