Inheritance: InsertClause
示例#1
0
        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);
        }
示例#2
0
        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();
        }