Models: Update Payment models
This commit is contained in:
@ -39,12 +39,9 @@ namespace Elwig.Models.Entities {
|
||||
}
|
||||
|
||||
[Column("amount")]
|
||||
public long AmountValue { get; set; }
|
||||
public long AmountValue { get; private set; }
|
||||
[NotMapped]
|
||||
public decimal Amount {
|
||||
get => Variant.Season.DecFromDb(AmountValue);
|
||||
set => AmountValue = Variant.Season.DecToDb(value);
|
||||
}
|
||||
public decimal Amount => Variant.Season.DecFromDb(AmountValue);
|
||||
|
||||
[ForeignKey("Year, AvNr")]
|
||||
public virtual PaymentVar Variant { get; private set; }
|
||||
|
Reference in New Issue
Block a user