Improve error message when custom LINQ extension method is executed client side

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Unknown
    • 3.1.0
    • Affects Version/s: None
    • Component/s: LINQ
    • None
    • None
    • Fully Compatible
    • Dotnet Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      There are a number of custom LINQ extension methods (mostly in `MongoEnumerable.cs`) that exist only to be used in LINQ queries that will be executed server side.

      Currently, when executed client side the following exception message results:

      This method is not functional. It is only usable in conjunction with MongoDB. 

      These messages should be improved to include the name of the method and be worded better. Something like:

      The Bottom method is intended to be used in LINQ queries executed on a MongoDB server and cannot be executed client-side.

            Assignee:
            Robert Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: