From 0e961b36113f18c848254980485ed612625e6e9a Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Tue, 28 Nov 2023 15:24:31 +0100 Subject: [PATCH] Small fix for 8.0.0 --- EFCore.NamingConventions/Internal/NameRewritingConvention.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EFCore.NamingConventions/Internal/NameRewritingConvention.cs b/EFCore.NamingConventions/Internal/NameRewritingConvention.cs index b4999a2..2a06f05 100644 --- a/EFCore.NamingConventions/Internal/NameRewritingConvention.cs +++ b/EFCore.NamingConventions/Internal/NameRewritingConvention.cs @@ -303,7 +303,7 @@ private void RewriteColumnName(IConventionPropertyBuilder propertyBuilder) // Remove any previous setting of the column name we may have done, so we can get the default recalculated below. property.Builder.HasNoAnnotation(RelationalAnnotationNames.ColumnName); - if (_ignoreMigrationTable && entityType.ClrType.FullName == "Microsoft.EntityFrameworkCore.Migrations.HistoryRow") + if (_ignoreMigrationTable && property.DeclaringType.ClrType.FullName == "Microsoft.EntityFrameworkCore.Migrations.HistoryRow") { return; }