public void Init( IInsertClause insert, IUpdateClause update, IDeleteClause delete, ISelectClause select, IFromClause from, IWhereClause where, IGroupByClause groupBy, IWhereClause having, IOrderByClause orderBy, LinkedList <IUnion> unions, ISelectQuery parentSelect, ICreateTableStatement createTable, bool parameterDependent, List <ISqlParameter> parameters) { Insert = insert; Update = update; Delete = delete; Select = select; From = from; Where = where; GroupBy = groupBy; Having = having; OrderBy = orderBy; Unions = unions; ParentSelect = parentSelect; CreateTable = createTable; IsParameterDependent = parameterDependent; Parameters.AddRange(parameters); foreach (var col in select.Columns) { col.Parent = this; } Select.SetSqlQuery(this); From.SetSqlQuery(this); Where.SetSqlQuery(this); GroupBy.SetSqlQuery(this); Having.SetSqlQuery(this); OrderBy.SetSqlQuery(this); }
public void ClearUpdate() { Update = null; }