Пример #1
0
 public SelectQuery()
 {
     SelectExpressions = new List <Expression>();
     From          = new FromClause();
     Where         = new WhereClause();
     Limit         = null;
     OrderBy       = new OrderByClause();
     GroupBy       = new GroupByClause();
     LockForUpdate = false;
 }
Пример #2
0
        public SelectQuery(SelectQuery other)
        {
            SelectExpressions = new List <Expression>(other.SelectExpressions.Capacity);
            SelectExpressions.AddRange(other.SelectExpressions.Select(x => x.Clone() as Expression));

            From          = new FromClause(other.From);
            Where         = new WhereClause(other.Where);
            Limit         = other.Limit;
            OrderBy       = new OrderByClause(other.OrderBy);
            GroupBy       = new GroupByClause(other.GroupBy);
            LockForUpdate = other.LockForUpdate;
        }
Пример #3
0
 public GroupByClause(GroupByClause other)
 {
     GroupColumns = new List <ColumnRef>(other.GroupColumns.Capacity);
     GroupColumns.AddRange(other.GroupColumns.Select(x => x.Clone() as ColumnRef));
 }