public static Expression Build(QueryLinguist linguist, QueryPolicy policy, Expression expression, Expression provider) { ParameterExpression expression2; return(new ExecutionBuilder(linguist, policy, expression2 = Expression.Parameter(typeof(QueryExecutor), "executor")) { variables = { expression2 }, initializers = { Expression.Call((Expression)Expression.Convert(provider, typeof(ICreateExecutor)), "CreateExecutor", (Type[])null, (Expression[])null) } }.Build(expression)); }
private ExecutionBuilder(QueryLinguist linguist, QueryPolicy policy, Expression executor) { this.linguist = linguist; this.policy = policy; this.executor = executor; }
public QueryTranslator(QueryLanguage language, QueryMapping mapping, QueryPolicy policy) { this.linguist = language.CreateLinguist(this); this.mapper = mapping.CreateMapper(this); this.police = policy.CreatePolice(this); }