public void DeleteTopFromTable(SqlFragment parent, DeleteTopFromTable deleteTopFromTable) { this.Script.Append("DELETE TOP ("); this.Script.AppendFragment(deleteTopFromTable.Top, deleteTopFromTable, this); this.Script.Append(") FROM"); this.Script.AppendFragment(deleteTopFromTable.Table, deleteTopFromTable, this); }
public DeleteClause DeleteTopFrom(Expression top, Table table) { var stm = new DeleteStatement(this); var clause = new DeleteTopFromTable(stm, top, table); stm.FirstFragment = clause; return(clause); }