mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 10:27:18 +02:00
22 lines
720 B
C#
22 lines
720 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|