Entities: Use 'init' instead of 'private set'
This commit is contained in:
1 parent
f1e8907d40
commit
089ac3ce85
41 files changed
+170
-178
No files matched your search
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user