Added missing foreign key
This commit is contained in:
parent
a47cf9dc42
commit
410062daae
@ -137,12 +137,24 @@ namespace DataModels
|
||||
|
||||
#region Associations
|
||||
|
||||
/// <summary>
|
||||
/// OrganizationUnits_ibfk_3_BackReference
|
||||
/// </summary>
|
||||
[Association(ThisKey="Id", OtherKey="ParentId", CanBeNull=true, Relationship=Relationship.OneToMany, IsBackReference=true)]
|
||||
public IEnumerable<OrganizationUnit> Ibfks { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// OrganizationUnits_ibfk_2
|
||||
/// </summary>
|
||||
[Association(ThisKey="Id", OtherKey="Id", CanBeNull=false, Relationship=Relationship.ManyToOne, KeyName="OrganizationUnits_ibfk_2", BackReferenceName="OrganizationUnitsibfks")]
|
||||
public Node Node { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// OrganizationUnits_ibfk_3
|
||||
/// </summary>
|
||||
[Association(ThisKey="ParentId", OtherKey="Id", CanBeNull=true, Relationship=Relationship.ManyToOne, KeyName="OrganizationUnits_ibfk_3", BackReferenceName="Ibfks")]
|
||||
public OrganizationUnit? Parent { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user