Models: Use nameof() in InverseProperty

This commit is contained in:
2024-03-15 16:41:40 +01:00
parent ebb196b094
commit d9f9ab2391
13 changed files with 47 additions and 47 deletions

View File

@ -26,7 +26,7 @@ namespace Elwig.Models.Entities {
[Column("po_box")]
public bool IsPoBox { get; private set; }
[InverseProperty("AtPlz")]
public virtual ISet<AT_PlzDest> Orte { get; private set; } = null!;
[InverseProperty(nameof(AT_PlzDest.AtPlz))]
public virtual ICollection<AT_PlzDest> Orte { get; private set; } = null!;
}
}