Entities: Use 'required' and '= null!' to get rid of warnings

This commit is contained in:
2024-02-29 15:48:09 +01:00
parent 53a25b3be4
commit f922388db9
40 changed files with 142 additions and 155 deletions

View File

@ -14,10 +14,10 @@ namespace Elwig.Models.Entities {
public int? KgNr { get; private set; }
[Column("name")]
public string Name { get; private set; }
public string Name { get; private set; } = null!;
[ForeignKey("Gkz")]
public virtual AT_Gem Gem { get; private set; }
public virtual AT_Gem Gem { get; private set; } = null!;
[ForeignKey("KgNr")]
public virtual AT_Kg? Kg { get; private set; }