From 643946e5e74062fa099b25ca6521eaba5197e055 Mon Sep 17 00:00:00 2001 From: David Vreony Date: Mon, 30 Sep 2024 19:06:37 +0100 Subject: [PATCH] remove id suffix from index column name (#505) needs to be done via helpers that inject the data as not every column is id --- .../EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs index 4cec07b8..297e622b 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs @@ -590,7 +590,7 @@ private static IEnumerable GetIndexColumnNames(string[] names) throw new ArgumentException($"Index at position {index} has a column name that is null or whitespace.", nameof(names)); } - yield return $"t.{name.Trim()}Id"; + yield return $"t.{name.Trim()}"; } }