Defines query execution & materialization policies.
Ejemplo n.º 1
0
 private QExecutionBuilder(QueryPolicy policy, Expression provider)
 {
     isTop = true;
     initializers = new List<Expression>();
     variables = new List<ParameterExpression>();
     this.policy = policy;
     this.provider = provider;
 }
Ejemplo n.º 2
0
 public static Expression Build(QueryPolicy policy, Expression expression, Expression provider)
 {
     return new QExecutionBuilder(policy, provider).Build(expression);
 }
 public static Expression Include(QueryPolicy policy, Expression expression)
 {
     return new RelationshipIncluder(policy).Visit(expression);
 }
Ejemplo n.º 4
0
 internal KdbContext(IConnection connection, TextWriter log, QueryPolicy policy)
 {
     Provider = new KdbQueryProvider(connection, policy, log);
 }
 private RelationshipIncluder(QueryPolicy policy)
 {
     this.policy = policy;
     this.mapping = policy.Mapping;
 }