Skip to content

Commit

Permalink
ForbidGroupingByNavigationPropertiesRule: base types (#51)
Browse files Browse the repository at this point in the history
* ForbidGroupingByNavigationPropertiesRule: base types

* fix location

* revert
  • Loading branch information
LipatovAlexander authored Jul 10, 2024
1 parent 5d2d27b commit a87427e
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 a87427e

Please sign in to comment.