Entities: Use 'init' instead of 'private set'

This commit is contained in:
lorenz.stechauner committed 2026-11-29 10:40:59 +01:00
1 parent f1e8907d40
commit 089ac3ce85
41 files changed
+170 -178

No files matched your search

+4 -4
View File
@@ -65,15 +65,15 @@ namespace Elwig.Models.Entities {
}
[ForeignKey("FbNr")]
public virtual AreaCmtContract Contract { get; private set; } = null!;
public virtual AreaCmtContract Contract { get; init; } = null!;
[ForeignKey("MgNr")]
public virtual Member Member { get; private set; } = null!;
public virtual Member Member { get; init; } = null!;
[ForeignKey("VtrgId")]
public virtual AreaCmtType AreaCmtType { get; private set; } = null!;
public virtual AreaCmtType AreaCmtType { get; init; } = null!;
[ForeignKey("CultId")]
public virtual WineCult? WineCult { get; private set; }
public virtual WineCult? WineCult { get; init; }
}
}