public UpdateStatement(SqlBuilder sqlBuilder, Table table) { SqlBuilder = sqlBuilder; Table = table; Assignment = new AssignmentRecord(); WhereCondition = new CompoundSqlCondition(sqlBuilder); }
public SelectStatement( SqlBuilder sqlBuilder, Option <CombinedSelectStatement> combined, RelationSqlExpression relation ) { SqlBuilder = sqlBuilder; Combined = combined; Source = relation; WhereCondition = new CompoundSqlCondition(SqlBuilder); HavingCondition = new CompoundSqlCondition(SqlBuilder); }
internal CompoundSqlCondition Add(CompoundSqlCondition condition) { if (ReferenceEquals(Combinator, condition.Combinator)) { Conditions.AddRange(condition.Conditions); } else { Conditions.Add(condition); } return(this); }