상속: DeleteClause
예제 #1
0
 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);
 }
예제 #2
0
파일: SharpBatch.cs 프로젝트: w0lya/sharpql
        public DeleteClause DeleteTopFrom(Expression top, Table table)
        {
            var stm    = new DeleteStatement(this);
            var clause = new DeleteTopFromTable(stm, top, table);

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