Example #1
0
 public void UpdateTopPercentTable(SqlFragment parent, UpdateTopPercentTable updateTopPercentTable)
 {
     this.Script.Append(TSqlKeyword.UPDATE_TOP).OpenParen();
     this.Script.AppendFragment(updateTopPercentTable.TopPercent, parent, this);
     this.Script.CloseParen().Append(TSqlKeyword.PERCENT);
     this.Script.AppendFragment(updateTopPercentTable.Table, parent, this);
 }
Example #2
0
        public UpdateClause UpdateTopPercent(Expression percent, Table table)
        {
            var stetment = new UpdateStatement(this);
            var clause   = new UpdateTopPercentTable(stetment, percent, table);

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