17 lines
620 B
C#
17 lines
620 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using SVSim.Database.Common;
|
|
|
|
namespace SVSim.Database.DataSeeders;
|
|
|
|
public class DefaultSettingsSeeder : IDataSeeder
|
|
{
|
|
public void Seed(ModelBuilder builder)
|
|
{
|
|
// GameConfiguration is seeded at runtime (see SVSimDbContext.EnsureSeedDataAsync),
|
|
// NOT via HasData — EF Core 8's HasData+OwnsOne(...).ToJson combo doesn't reliably
|
|
// populate the jsonb cell, leading to NOT NULL violations on a fresh DB. Runtime
|
|
// seeding writes a full `GameConfigRoot()` (all sub-config POCO initialisers
|
|
// produce the canonical defaults).
|
|
}
|
|
}
|