Old data importer tool is ready

This commit is contained in:
Mikhail Shabanov committed 2021-01-05 10:27:21 +01:00
1 parent 26e469d69d
commit 9b9f2b141e
13 files changed
+667 -13

No files matched your search

@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore;
using WotBlitzStatisticsPro.DataAccess.Model.Accounts;
namespace DataImporterTool.Importer
{
public class OldStatisticsDbContext : DbContext
{
public OldStatisticsDbContext(DbContextOptions options) : base(options)
{
}
public DbSet<AccountInfo> AccountInfos { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<AccountInfo>().HasKey(a => a.AccountId);
modelBuilder.Entity<AccountInfo>().Ignore(a => a.Realm);
modelBuilder.Entity<AccountInfo>().Ignore(a => a.UpdatedAt);
base.OnModelCreating(modelBuilder);
}
}
}