Exemplo n.º 1
0
        public static IMongoQuery GetQueryComplete(Expression expression)
        {
            var vistor = new MongoExpressionTreeVisitor();

            vistor.VisitExpression(expression);
            return(vistor.GetQueryComplete());
        }
 public override void VisitSelectClause(SelectClause selectClause, QueryModel queryModel)
 {
     MongoExpressionTreeVisitor.GetQueryComplete(selectClause.Selector);
     //todo
     base.VisitSelectClause(selectClause, queryModel);
 }
 public override void VisitWhereClause(WhereClause whereClause, QueryModel queryModel, int index)
 {
     queryData.Query = MongoExpressionTreeVisitor.GetQueryComplete(whereClause.Predicate);
     base.VisitWhereClause(whereClause, queryModel, index);
 }