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

Investigate how to integrate with the MongoDB Analyzer #278

Open
Turnerj opened this issue Jan 15, 2022 · 1 comment
Open

Investigate how to integrate with the MongoDB Analyzer #278

Turnerj opened this issue Jan 15, 2022 · 1 comment
Labels
affects-querying Query-related issue enhancement Enhancements & features help wanted

Comments

@Turnerj
Copy link
Member

Turnerj commented Jan 15, 2022

See: https://www.mongodb.com/developer/article/introducing-mongodb-analyzer-dotnet/

Basically there is an analyser package that helps with LINQ query building. It likely looks for certain interfaces that exist in the official driver but there may still be ways to get it to work.

If it doesn't work out-of-the-box, it might be worth seeing if a PR to the library (assuming it is open source) can add a more generic support to it making queries easier from MongoFramework consumers.

Tasks:

  • Does it work out of the box? If so, nothing to do!
  • If it doesn't, look at the source of the analyser to check what it is looking for.
  • If it is looking for an interface with the official driver, plans would need to be created to work out how to do it generically - even if it is a little cumbersome on our side of things.
  • If it is looking for some other pattern, that needs to be discussed to work out the best course of action (we might be able to change our side of things to make it work).

If possible, it would be great if it could be an attribute or something - especially if the lookup is by the attribute name directly. That way we don't need to reference the same library.

I mean, maybe if it is by interface name, we might be able to have an internal interface that the analyser might still pick up.

@Turnerj Turnerj added enhancement Enhancements & features help wanted affects-querying Query-related issue labels Jan 15, 2022
@Turnerj
Copy link
Member Author

Turnerj commented May 22, 2022

MongoDB C# Analyzer source code: https://github.com/mongodb/mongo-csharp-analyzer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-querying Query-related issue enhancement Enhancements & features help wanted
Projects
None yet
Development

No branches or pull requests

1 participant