public InsertQuery(QualifiedIdentifier Into, IColumnDefinion[] Fields, IInsertSource From, IColumnDefinion Output) { this.Into = Into; this.Output = Output; fields = Fields; SourceData = From; }
public UpdateQuery(QualifiedIdentifier Table, string where, IEnumerable<Tuple<LocalIdentifier, string[]>> SetClause) { this.Table = Table; this.where = where; if (!SetClause.Any()) throw new InvalidOperationException("UPDATE query must have at least one SET clause."); this.SetClause = SetClause; }
/// <summary> Creates a simple select query which can be extended or used as a subquery </summary> /// <param name="Source"> A qualified name of table/view or a subquery</param> public DeleteQuery(QualifiedIdentifier Table, string where) { this.Table = Table; this.where = where; }