Need a simple way to view the generated LINQ Queries.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.1
    • Affects Version/s: None
    • Component/s: LINQ
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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)

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

              Created:
              Updated:
              Resolved: