public static IDictionary <string, object> Eval(Expression expression, SessionContext sessionContext) { var visitor = new MongoQueryTransformVisitor(); var context = new VisitorContext(visitor, sessionContext); visitor.Context = context; visitor.Visit(expression); return(context.GetResult()); }
public void Visit(Expression expression) { _visitor.Visit(expression); }