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

DOCSP-46795: Update LINQ/builder FAQ #449

Merged
merged 3 commits into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions source/faq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,20 @@

.. _csharp-faq-linq-vs-builder:

Should I Use LINQ or Builder Classes When Querying for Documents?
-----------------------------------------------------------------
Should I Use LINQ, Builder Classes, or BSON Documents When Querying for Documents?

Check failure on line 188 in source/faq.txt

View workflow job for this annotation

GitHub Actions / TDBX Vale rules

[vale] reported by reviewdog 🐶 [MongoDB.AvoidSubjunctive] Avoid the subjunctive 'Should'. Raw Output: {"message": "[MongoDB.AvoidSubjunctive] Avoid the subjunctive 'Should'.", "location": {"path": "source/faq.txt", "range": {"start": {"line": 188, "column": 1}}}, "severity": "ERROR"}
----------------------------------------------------------------------------------

If you're used to programming in {+language+}, consider using LINQ because of its similar feel
to programming in native {+language+}. If you have prior experience with other MongoDB drivers,
consider using Builder classes because of their consistency with other drivers.

We encourage experimenting with both approaches to determine the most suitable mechanism
for your purposes.
consider using builder classes because of their consistency with other drivers. BSON
documents offer the most flexibility and can translate more easily to other programming
languages, but are less idiomatic to {+language+} and do not check for type errors at
compile time.

We encourage experimenting with each approach to determine the most suitable mechanism
for your purposes. To learn more about visualizing LINQ and builder class queries, see the
`{+analyzer+} <https://www.mongodb.com/docs/mongodb-analyzer/current/>`__. For assistance
in building BSON document queries, see the :compass:`MongoDB Compass <>` documentation.

.. _csharp-faq-unsupported-expressions:

Expand Down
Loading