diff --git a/Mindbox.Analyzers/Rules/ForbidGroupingByNavigationPropertiesRule.cs b/Mindbox.Analyzers/Rules/ForbidGroupingByNavigationPropertiesRule.cs index 8ba3d0c..e00c2f1 100644 --- a/Mindbox.Analyzers/Rules/ForbidGroupingByNavigationPropertiesRule.cs +++ b/Mindbox.Analyzers/Rules/ForbidGroupingByNavigationPropertiesRule.cs @@ -62,7 +62,7 @@ x.AttributeClass is not null && x.AttributeClass.ContainingNamespace.ToString() == "System.ComponentModel.DataAnnotations.Schema" && x.AttributeClass.Name == "TableAttribute"); - return attributeData is not null; + return attributeData is not null || typeSymbol.BaseType is not null && HasTableAttribute(typeSymbol.BaseType); } private static bool TryGetGroupByProperty(