Entities: Use 'required' and '= null!' to get rid of warnings
This commit is contained in:
@ -13,7 +13,6 @@ namespace Elwig.Models.Entities {
|
||||
[Column("mgnr")]
|
||||
public int MgNr { get; set; }
|
||||
|
||||
|
||||
[Column("net_amount")]
|
||||
public long NetAmountValue { get; set; }
|
||||
[NotMapped]
|
||||
@ -44,10 +43,10 @@ namespace Elwig.Models.Entities {
|
||||
public decimal Amount => Variant.Season.DecFromDb(AmountValue);
|
||||
|
||||
[ForeignKey("Year, AvNr")]
|
||||
public virtual PaymentVar Variant { get; private set; }
|
||||
public virtual PaymentVar Variant { get; private set; } = null!;
|
||||
|
||||
[ForeignKey("MgNr")]
|
||||
public virtual Member Member { get; private set; }
|
||||
public virtual Member Member { get; private set; } = null!;
|
||||
|
||||
[InverseProperty("Payment")]
|
||||
public virtual Credit? Credit { get; private set; }
|
||||
|
Reference in New Issue
Block a user