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

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

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

      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@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: