public SelectQuery() { SelectExpressions = new List <Expression>(); From = new FromClause(); Where = new WhereClause(); Limit = null; OrderBy = new OrderByClause(); GroupBy = new GroupByClause(); LockForUpdate = false; }
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; }
public GroupByClause(GroupByClause other) { GroupColumns = new List <ColumnRef>(other.GroupColumns.Capacity); GroupColumns.AddRange(other.GroupColumns.Select(x => x.Clone() as ColumnRef)); }