Skip to content

Commit

Permalink
DOCSP-46795: Update LINQ/builder FAQ (#449)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9236b14)
  • Loading branch information
mcmorisi committed Feb 4, 2025
1 parent 47e9abe commit 5c8b5d0
Showing 1 changed file with 11 additions and 6 deletions.
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 @@ The error message consists of multiple parts:

.. _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?
----------------------------------------------------------------------------------

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

0 comments on commit 5c8b5d0

Please sign in to comment.