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
@@ -36,9 +36,9 @@ namespace Elwig.Models.Entities {
|
||||
}
|
||||
|
||||
[ForeignKey("Year, AvNr")]
|
||||
public virtual PaymentVar Variant { get; private set; } = null!;
|
||||
public virtual PaymentVar Variant { get; init; } = null!;
|
||||
|
||||
[ForeignKey("Year, DId, DPNr")]
|
||||
public virtual DeliveryPart DeliveryPart { get; private set; } = null!;
|
||||
public virtual DeliveryPart DeliveryPart { get; init; } = null!;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user