Add ProfileId filter and navigation property to OutRes
Enhanced `ReadOutResHandler` to support filtering by `ProfileId` when querying `OutRes` entities. This was implemented by adding a condition to filter results based on the `ProfileId` of the associated `Action`. Updated the `OutRes` class to include a navigation property `Action`, annotated with `[ForeignKey]` to link it to the `ActionId` column. This establishes a relationship between `OutRes` and `RecAction`, improving data access and maintainability.
This commit is contained in:
@@ -14,6 +14,9 @@ public class OutRes
|
||||
[Column("ACTION_ID")]
|
||||
public long? ActionId { get; set; }
|
||||
|
||||
[ForeignKey("ActionId")]
|
||||
public RecAction? Action { get; set; }
|
||||
|
||||
[Column("RESULT_HEADER")]
|
||||
public string? Header { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user