Add foreign key relationship to RecAction class

Enhanced the `RecAction` class by adding a navigation property
(`Endpoint`) to represent the relationship with the `Endpoint`
entity. Annotated the `Endpoint` property with the
`[ForeignKey("EndpointId")]` attribute to establish the foreign
key mapping. This improves the data model by explicitly defining
the relationship between `RecAction` and `Endpoint`.
This commit is contained in:
tekh 2025-12-01 14:06:52 +01:00
parent 6eac642784
commit 5584a82d8f

View File

@ -25,6 +25,9 @@ public class RecAction
[Column("ENDPOINT_ID")]
public long? EndpointId { get; set; }
[ForeignKey("EndpointId")]
public Endpoint? Endpoint { get; set; }
[Column("ENDPOINT_AUTH_ID")]
public long? EndpointAuthId { get; set; }