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: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Linq
    • None
    • Dotnet Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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: