Пример #1
0
        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);
        }
Пример #2
0
 public StatementBlock(QueryBatch queryBatch, MemberExpression memberExpression, params QueryMapWithLambdaParam[] mapping)
 {
     _queryBatch = queryBatch;
     _mapping = mapping;
     _result = ParseMemberAccess(memberExpression);
 }
Пример #3
0
 public StatementBlock(QueryBatch queryBatch, Expression expression, params QueryMapWithLambdaParam[] mapping)
 {
     _queryBatch = queryBatch;
     _mapping = mapping;
     _result = Parse(expression);
 }