示例#1
0
 public override void VisitDropTable(DropTableCommand cmd)
 {
     this.Append("DROP TABLE " + cmd.Name);
     this.ExecuteCommandText(cmd.ConnectionString, builder.ToString());
 }
示例#2
0
 public virtual void VisitDropTable(DropTableCommand cmd)
 {
     this.Append("IF EXISTS (SELECT * FROM dbo.sysobjects where id = object_id(N'" + cmd.Name + "') AND OBJECTPROPERTY(id, N'IsUserTable') = 1) ");
     this.Append("DROP TABLE " + cmd.Name);
     this.ExecuteCommandText(cmd.ConnectionString, builder.ToString());
 }