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

LINQ3: Add Create and With methods to ExecutableQuery

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add the following methods to ExecutableQuery

      public static ExecutableQuery<TDocument, TOutput, TResult> Create<TDocument, TOutput, TResult>(
          IMongoCollection<TDocument> collection,
          AggregateOptions options,
          AstPipeline unoptimizedPipeline,
          IExecutableQueryFinalizer<TOutput, TResult> finalizer)
      
      public abstract ExecutableQuery<TDocument, TResult> WithCollection(IMongoCollection<TDocument> collection);
      
      public abstract ExecutableQuery<TDocument, TResult> WithOptions(AggregateOptions options);
       

      The new Create factory method facilitates creating new instances more succinctly, and the two new With methods will be used by QueryableExecutionModel3 when wrapping an ExecutableQuery.

       

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: