File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Linq/Processors/EmbeddedPipeline/MethodCallBinders Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . Linq . Expressions ;
4+ using MongoDB . Driver . Linq . Expressions ;
5+
6+ namespace MongoDB . Driver . Linq . Processors . EmbeddedPipeline . MethodCallBinders
7+ {
8+ using System . Linq ;
9+ using System . Reflection ;
10+
11+ internal class AsQuerableBinder : IMethodCallBinder < EmbeddedPipelineBindingContext >
12+ {
13+ public static IEnumerable < MethodInfo > GetSupportedMethods ( )
14+ {
15+ yield return MethodHelper . GetMethodDefinition ( ( ) => Queryable . AsQueryable ( null ) ) ;
16+ yield return MethodHelper . GetMethodDefinition ( ( ) => Queryable . AsQueryable < object > ( null ) ) ;
17+ }
18+
19+ public Expression Bind (
20+ PipelineExpression pipeline ,
21+ EmbeddedPipelineBindingContext bindingContext ,
22+ MethodCallExpression node ,
23+ IEnumerable < Expression > arguments )
24+ {
25+ return pipeline ;
26+ }
27+ }
28+ }
Original file line number Diff line number Diff line change 158158 <Compile Include =" Linq\Processors\EmbeddedPipeline\EmbeddedPipelineBinder.cs" />
159159 <Compile Include =" Linq\Processors\EmbeddedPipeline\EmbeddedPipelineBindingContext.cs" />
160160 <Compile Include =" Linq\Processors\EmbeddedPipeline\MethodCallBinders\AllBinder.cs" />
161+ <Compile Include =" Linq\Processors\EmbeddedPipeline\MethodCallBinders\AsQuerableBinder.cs" />
161162 <Compile Include =" Linq\Processors\EmbeddedPipeline\MethodCallBinders\ConcatBinder.cs" />
162163 <Compile Include =" Linq\Processors\EmbeddedPipeline\MethodCallBinders\OfTypeBinder.cs" />
163164 <Compile Include =" Linq\Processors\EmbeddedPipeline\MethodCallBinders\SkipBinder.cs" />
You can’t perform that action at this time.
0 commit comments