Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1019

Need a simple way to view the generated LINQ Queries.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.1
    • None
    • Linq
    • None

    Description

      We need a simple way to discover the generated queries when using LINQ.

      This will likely take the form of either using .ToString(), which will generate json that can be pasted into the shell, or by using a cast to see more in depth and native representations of the query.

      Original
      -----------

      This allows to easily get the native query of every LINQ query by using the GetMongoQuery() method withoyt needing to actually cast it to the correct MongoQueryable <SomeType> class.
      This is great for debugging aids (visualizers) and performance logging (i.e. log every query taking longer than x milliseconds)

      Attachments

        Activity

          People

            Unassigned Unassigned
            eyalpost Eyal Post
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: