Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroupByEntityRule #50

Merged
merged 7 commits into from
Jul 9, 2024
Merged

Conversation

LipatovAlexander
Copy link
Contributor

@LipatovAlexander LipatovAlexander requested a review from a team July 9, 2024 09:45
@@ -35,7 +35,8 @@ static MindboxAnalyzer()
new ModelApplicationHostControllerServiceLocatorProhibitedRule(),
new NamedObjectModelConfigurationRegisterProhibitedRule(),
new DataContractRequireIfUsingDataMemberRule(),
new ForbidRawSqlOutsideDbProviderSpecificCodeRule()
new ForbidRawSqlOutsideDbProviderSpecificCodeRule(),
new GroupByEntityRule()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай чуть имя правила улучшим
чтобы по нему было понятно, что правило энфорсит, как выше у других

private const string Title = "Grouping by navigation property check";
private const string MessageFormat = "Grouping by navigation properties is not allowed";
private const string Description =
"Grouping by navigation properties is not allowed to avoid issues " +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в описании нужно описать как обойтись без навигационных свойств
щас предполагается - что разработчик пойдет смотреть ишью в npgsql, это кажется слишком долгим путем
нужно подсказать - что используй свойство такое-то взамен

@LipatovAlexander LipatovAlexander merged commit 5d2d27b into main Jul 9, 2024
3 checks passed
@LipatovAlexander LipatovAlexander deleted the publish-dev/lipatov-platform-2994 branch July 9, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants