コード例 #1
0
 public InsertQuery(QualifiedIdentifier Into, IColumnDefinion[] Fields, IInsertSource From, IColumnDefinion Output)
 {
     this.Into = Into;
     this.Output = Output;
     fields = Fields;
     SourceData = From;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 /// <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;
 }