Models: Use nameof() in InverseProperty
This commit is contained in:
@ -16,7 +16,7 @@ namespace Elwig.Models.Entities {
|
||||
[ForeignKey("Gkz")]
|
||||
public virtual AT_Gem Gem { get; private set; } = null!;
|
||||
|
||||
[InverseProperty("AtKg")]
|
||||
[InverseProperty(nameof(WbKg.AtKg))]
|
||||
public virtual WbKg? WbKg { get; private set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user