Esempio n. 1
0
        private Expression BuildInner(Expression expression)
        {
            var eb = new VfpExecutionBuilder(this.linguist, this.policy, this.executor);

            eb.scope           = this.scope;
            eb.receivingMember = this.receivingMember;
            eb.nReaders        = this.nReaders;
            eb.nLookup         = this.nLookup;
            eb.variableMap     = this.variableMap;
            return(eb.Build(expression));
        }
Esempio n. 2
0
        public static Expression Build(QueryLinguist linguist, QueryPolicy policy, Expression expression, Expression provider)
        {
            var executor = Expression.Parameter(typeof(QueryExecutor), "executor");
            var builder  = new VfpExecutionBuilder(linguist, policy, executor);

            builder.variables.Add(executor);
            builder.initializers.Add(Expression.Call(Expression.Convert(provider, typeof(ICreateExecutor)), "CreateExecutor", null, null));
            var result = builder.Build(expression);

            return(result);
        }
Esempio n. 3
0
 public override Expression BuildExecutionPlan(Expression query, Expression provider)
 {
     return(VfpExecutionBuilder.Build(this.Translator.Linguist, this.Policy, query, provider));
 }