public QueryBlock(QueryBatch queryBatch, QueryBlock parent, Expression expression) : base(parent) { this.QueryBatch = queryBatch ?? parent.QueryBatch; Cte = new CteBlock(this); Select = new SelectBlock(this); Into = new IntoBlock(this); Where = new WhereBlock(this); From = new FromBlock(this); Group = new GroupBlock(this); Order = new OrderBlock(this); if (expression != null) Inspect(expression); }
public StatementBlock(QueryBatch queryBatch, MemberExpression memberExpression, params QueryMapWithLambdaParam[] mapping) { _queryBatch = queryBatch; _mapping = mapping; _result = ParseMemberAccess(memberExpression); }
public StatementBlock(QueryBatch queryBatch, Expression expression, params QueryMapWithLambdaParam[] mapping) { _queryBatch = queryBatch; _mapping = mapping; _result = Parse(expression); }