Table of Contents

Method DropTable

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

DropTable(Table)

Drops (deletes) a table from the database, removing the table structure and all its data.

public void DropTable(Table table)

Parameters

table Table

The Table object representing the table to drop.

Examples

using (var m = new Manager(conn))
{
    var schema = m.LoadSchema("app");
    var table = schema["temp_data"];
    m.DropTable(table);
}

Exceptions

DbException

Thrown when a database error occurs.