Models: Use nameof() in InverseProperty
This commit is contained in:
@ -11,10 +11,10 @@ namespace Elwig.Models.Entities {
|
||||
[Column("name")]
|
||||
public string Name { get; private set; } = null!;
|
||||
|
||||
[InverseProperty("Gem")]
|
||||
public virtual ISet<AT_Kg> Kgs { get; private set; } = null!;
|
||||
[InverseProperty(nameof(AT_Kg.Gem))]
|
||||
public virtual ICollection<AT_Kg> Kgs { get; private set; } = null!;
|
||||
|
||||
[InverseProperty("AtGem")]
|
||||
[InverseProperty(nameof(WbGem.AtGem))]
|
||||
public virtual WbGem? WbGem { get; private set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user