Example #1
0
 public virtual Net.Vpc.Upa.Expressions.Expression SimplifyExpression(Net.Vpc.Upa.Expressions.Expression expression, System.Collections.Generic.IDictionary <string, object> vars)
 {
     Net.Vpc.Upa.Expressions.Expression e = ParseExpression(expression);
     Net.Vpc.Upa.Expressions.ExpressionTransformerResult e2 = e.Transform(new Net.Vpc.Upa.Impl.Uql.Util.SimplifyVarsExpressionTransformer(GetPersistenceUnit(), vars));
     return(CreateEvaluator().EvalObject(e2.GetExpression(), null));
 }