Add SqlConnection navigation property to RecAction
Introduced a new `SqlConnection` property in the `RecAction` class, marked with the `[ForeignKey("SqlConnectionId")]` attribute. This establishes a foreign key relationship with the `SqlConnectionId` property, enabling ORM navigation between `RecAction` and the `Connection` entity.
This commit is contained in:
parent
420762a463
commit
86e599a102
@ -40,6 +40,9 @@ public class RecAction
|
|||||||
[Column("SQL_CONNECTION_ID")]
|
[Column("SQL_CONNECTION_ID")]
|
||||||
public short? SqlConnectionId { get; set; }
|
public short? SqlConnectionId { get; set; }
|
||||||
|
|
||||||
|
[ForeignKey("SqlConnectionId")]
|
||||||
|
public Connection? SqlConnection { get; set; }
|
||||||
|
|
||||||
[Column("TYPE")]
|
[Column("TYPE")]
|
||||||
public string? Type { get; set; }
|
public string? Type { get; set; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user