Add foreign key relationship to RecActionView

Introduced a `Profile` navigation property in the `RecActionView` class, linked to the `ProfileId` column using the `[ForeignKey]` attribute. The `Profile` property is nullable to support cases where no related `Profile` exists.
This commit is contained in:
tekh 2025-12-04 14:20:54 +01:00
parent a62923c8d6
commit 5ee3ca2d99

View File

@ -20,6 +20,9 @@ public class RecActionView
[Column("PROFILE_ID")]
public long? ProfileId { get; set; }
[ForeignKey("ProfileId")]
public Profile? Profile { get; set; }
[Column("PROFILE_NAME")]
[MaxLength(100)]
public string? ProfileName { get; set; }