mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
migrate welcome plugin to .NET Core 2.0
more fixes to stats database for migration last connection set when client connects and disconnects update GeoIP datatbase
This commit is contained in:
@ -11,6 +11,23 @@ namespace Stats.Models
|
||||
{
|
||||
builder.Entity<EFClientStatistics>()
|
||||
.HasKey(cs => new { cs.ClientId, cs.ServerId });
|
||||
|
||||
// fix linking from SQLCe
|
||||
builder.Entity<EFHitLocationCount>()
|
||||
.Property(c => c.ClientId)
|
||||
.HasColumnName("EFClientStatistics_ClientId");
|
||||
|
||||
builder.Entity<EFHitLocationCount>()
|
||||
.Property(c => c.ServerId)
|
||||
.HasColumnName("EFClientStatistics_ServerId");
|
||||
|
||||
// force pluralization
|
||||
builder.Entity<EFClientKill>().ToTable("EFClientKills");
|
||||
builder.Entity<EFClientMessage>().ToTable("EFClientMessages");
|
||||
builder.Entity<EFClientStatistics>().ToTable("EFClientStatistics");
|
||||
builder.Entity<EFHitLocationCount>().ToTable("EFHitLocationCounts");
|
||||
builder.Entity<EFServer>().ToTable("EFServers");
|
||||
builder.Entity<EFServerStatistics>().ToTable("EFServerStatistics");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user