Inheritance: UpdateClause
Example #1
0
 public void UpdateTopTable(SqlFragment parent, UpdateTopTable updateTopTable)
 {
     this.Script.Append("UPDATE TOP(");
     this.Script.AppendFragment(updateTopTable.Top, parent, this);
     this.Script.Append(")");
     this.Script.AppendFragment(updateTopTable.Table, parent, this);
 }
Example #2
0
        public UpdateClause UpdateTop(Expression top, Table table)
        {
            var stetment = new UpdateStatement(this);
            var clause   = new UpdateTopTable(stetment, top, table);

            stetment.FirstFragment = clause;
            return(clause);
        }