public InsertClause InsertInto(Table table, params Column[] columns) { var stm = new InsertStatement(this); var clause = new InsertIntoTable(stm, table, columns); stm.FirstFragment = clause; return(clause); }
public void InsertIntoTable(SqlFragment parent, InsertIntoTable insertIntoTable) { this.Script.Append(TSqlKeyword.INSERT_INTO); this.Script.AppendFragment(insertIntoTable.Table, insertIntoTable, this); if (!insertIntoTable.ColumnList.Any()) { return; } this.Script.OpenParen(); ExpressionFormatter.FormatColumnList(insertIntoTable.ColumnList, insertIntoTable, this.Script, this); this.Script.CloseParen(); }