/// <summary> /// 删除索引。 /// </summary> /// <param name="command">当前命令。</param> /// <param name="builder">SQL语句构建实例。</param> protected override void Generate( DropIndexCommand command, IndentedStringBuilder builder) { Check.NotNull(command, nameof(command)); Check.NotNull(builder, nameof(builder)); builder .Append("DROP INDEX ") .Append(Sql.DelimitIdentifier(Prefix(command.Name))) .Append(" ON ") .Append(Sql.DelimitIdentifier(Prefix(command.Table), command.Schema)); }
/// <summary> /// 删除索引。 /// </summary> /// <param name="command">当前命令。</param> /// <param name="builder">SQL语句构建实例。</param> protected abstract void Generate(DropIndexCommand command, IndentedStringBuilder builder);