mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 11:50:05 +02:00
Old data importer tool is ready
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user