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:
parent
a62923c8d6
commit
5ee3ca2d99
@ -20,6 +20,9 @@ public class RecActionView
|
|||||||
[Column("PROFILE_ID")]
|
[Column("PROFILE_ID")]
|
||||||
public long? ProfileId { get; set; }
|
public long? ProfileId { get; set; }
|
||||||
|
|
||||||
|
[ForeignKey("ProfileId")]
|
||||||
|
public Profile? Profile { get; set; }
|
||||||
|
|
||||||
[Column("PROFILE_NAME")]
|
[Column("PROFILE_NAME")]
|
||||||
[MaxLength(100)]
|
[MaxLength(100)]
|
||||||
public string? ProfileName { get; set; }
|
public string? ProfileName { get; set; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user