Add Modifier model
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Elwig.Helpers;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Elwig.Models {
|
||||
@ -14,9 +15,9 @@ namespace Elwig.Models {
|
||||
public string? Symbol { get; private set; }
|
||||
|
||||
[Column("one_euro")]
|
||||
public int? OneEuroValue { get; private set; }
|
||||
public long? OneEuroValue { get; private set; }
|
||||
|
||||
[NotMapped]
|
||||
public decimal? OneEuro => OneEuroValue / 1_000_000;
|
||||
public decimal? OneEuro => OneEuroValue != null ? Utils.DecFromDb((long)OneEuroValue, 6) : null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user