상속: InsertClause
예제 #1
0
파일: SharpBatch.cs 프로젝트: w0lya/sharpql
        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();
        }