コード例 #1
0
        public static Expression Bind(Expression node, IBsonSerializer documentSerializer, IBsonSerializerRegistry serializerRegistry)
        {
            // bind
            var binder = new ProjectionBinder(documentSerializer, serializerRegistry, __methodCallBinder);
            var bound  = binder.Bind(node);

            // post-process
            return(CorrelatedGroupRewriter.Rewrite(bound, serializerRegistry));
        }
コード例 #2
0
        public static Expression Rewrite(Expression node)
        {
            var rewriter = new CorrelatedGroupRewriter();

            return(rewriter.Visit(node));
        }
コード例 #3
0
 public static Expression Rewrite(Expression node, IBsonSerializerRegistry serializerRegistry)
 {
     var rewriter = new CorrelatedGroupRewriter(serializerRegistry);
     return rewriter.Visit(node);
 }
コード例 #4
0
        public static Expression Rewrite(Expression node, IBsonSerializerRegistry serializerRegistry)
        {
            var rewriter = new CorrelatedGroupRewriter(serializerRegistry);

            return(rewriter.Visit(node));
        }
コード例 #5
0
 public static Expression Rewrite(Expression node)
 {
     var rewriter = new CorrelatedGroupRewriter();
     return rewriter.Visit(node);
 }