From 09214b914f0b4d56044f380c615ba78c4b921af1 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Thu, 18 Nov 2021 15:01:39 -0600 Subject: [PATCH] =?UTF-8?q?fix(dir):=20=F0=9F=90=9B=20command-side=20table?= =?UTF-8?q?=20name=20of=20'changes'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EntityTypeConfigurations/ChangeTypeConfiguration.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Commands/EntityTypeConfigurations/ChangeTypeConfiguration.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Commands/EntityTypeConfigurations/ChangeTypeConfiguration.cs index e2e3ef945..5a81d8c26 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Commands/EntityTypeConfigurations/ChangeTypeConfiguration.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Commands/EntityTypeConfigurations/ChangeTypeConfiguration.cs @@ -14,6 +14,8 @@ public virtual void Configure(EntityTypeBuilder builder) // TODO: register and resolve INameRewriter var nr = new SnakeCaseNameRewriter(CultureInfo.InvariantCulture); + builder.ToTable($"{nr.RewriteName(nameof(Change))}s"); + // TODO: TDiscriminator should really be AggregateType rather than string but needs name rewriting builder.HasDiscriminator(nr.RewriteName(nameof(Queries.Entities.Change.AggregateType))) .HasValue(nr.RewriteName(nameof(AggregateType.FilterList)));