Add currency pegging.

This commit is contained in:
2020-06-10 21:15:09 +01:00
parent ae3d6a2502
commit 78db12603f
6 changed files with 4479 additions and 1 deletions

View File

@@ -98,6 +98,7 @@ namespace Marechai.Database.Models
public virtual DbSet<Audit> Audit { get; set; }
public virtual DbSet<Iso4217> Iso4217 { get; set; }
public virtual DbSet<CurrencyInflation> CurrenciesInflation { get; set; }
public virtual DbSet<CurrencyPegging> CurrenciesPegging { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
@@ -1565,6 +1566,12 @@ namespace Marechai.Database.Models
{
entity.HasIndex(d => d.Year);
});
modelBuilder.Entity<CurrencyPegging>(entity =>
{
entity.HasIndex(d => d.Start);
entity.HasIndex(d => d.End);
});
}
}
}