public SqlJoin(SqlMultiKeyWord joinPrefix, SqlSourceItem source, SymbolPosition onpos, SqlExpression cond) { JoinPrefix = joinPrefix; Source = source; OnPos = onpos; Condition = cond; JoinPrefix.Parent = this; Source.Parent = this; if (Condition != null) { Condition.Parent = this; } }
public SqlSourceList(SqlSourceItem source, IEnumerable <SqlJoin> joins) { Source = source; if (joins != null) { Joins = new List <SqlJoin>(joins); } else { Joins = new List <SqlJoin>(); } Source.Parent = this; foreach (var j in joins) { j.Parent = this; } }