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.
This commit is contained in:
parent
5ee3ca2d99
commit
74f4d06031
@ -17,6 +17,9 @@ public class RecActionView
|
|||||||
[Column("ACTION_ID")]
|
[Column("ACTION_ID")]
|
||||||
public required long Id { get; set; }
|
public required long Id { get; set; }
|
||||||
|
|
||||||
|
[ForeignKey("Id")]
|
||||||
|
public RecAction? RootAction { get; set; }
|
||||||
|
|
||||||
[Column("PROFILE_ID")]
|
[Column("PROFILE_ID")]
|
||||||
public long? ProfileId { get; set; }
|
public long? ProfileId { get; set; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user