Table of Contents

Method DropIndex

Namespace
YndigoBlue.Velocity.Engine
Assembly
YndigoBlue.Velocity.dll

DropIndex(Index)

Drops (deletes) an index from the database.

public void DropIndex(Index index)

Parameters

index Index

The Index object representing the index to drop.

Examples

using (var m = new Manager(conn))
{
    var schema = m.LoadSchema("app");
    var table = schema["users"];
    var index = table.Indexes["idx_email"];
    m.DropIndex(index);
}

Exceptions

DbException

Thrown when a database error occurs.