Table of Contents

Method DropSchema

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

DropSchema(Schema)

Drops (deletes) a schema and all its objects from the database.

public void DropSchema(Schema schema)

Parameters

schema Schema

The Schema object representing the schema to drop.

Examples

using (var m = new Manager(conn))
{
    var schema = m.LoadSchema("old_schema");
    m.DropSchema(schema);
}

Exceptions

DbException

Thrown when a database error occurs.