-
Notifications
You must be signed in to change notification settings - Fork 231
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
Fix S6602 FP: "Find" method should not be used for EF Core queries #7964
Comments
Hi @pampua84, good catch! Thanks for bringing it to our attention. |
Hello @pampua84, While the issue has been identified and the fix is in progress, we might miss the case you described. Thank you 🙏 |
HI @sebastien-marichal, |
If you can provide me a code snippet of the issue you mentioned: using Then, I will be able to ensure this case will be covered. |
This is the query where the Find() method (on Properties) cannot be applied as suggested by SonarLint:
where repository is:
|
I don't know if only this snippet is good, otherwise if I need a repository with a working application I need more time. |
Thank you @pampua84! I am assuming
If this is the case, I am all good! |
Hi @sebastien-marichal , |
This type of suggestion when applied to linq queries that are used by EF Core can lead to throwing exceptions of the type:
So this thing should at least be specified in the documentation.
The text was updated successfully, but these errors were encountered: