Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
ForbidGroupingByNavigationPropertiesRule: base types
Browse files Browse the repository at this point in the history
  • Loading branch information
LipatovAlexander committed Jul 10, 2024
1 parent 5d2d27b commit 6b7c27c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6b7c27c

Please sign in to comment.