Table of Contents

TDatabaseManager.DestroyDatabase Method

Drops all mapped schema objects from the database.

Remarks

Temporarily sets AllowDestructiveCommands to True and generates DROP DDL for every table and sequence in the existing database that corresponds to a mapped entity. Individual errors during execution are silently ignored so that the operation continues. Wraps execution in a transaction when UseTransactions is True; rolls back on failure.

Syntax

Unit: Aurelius.Engine.DatabaseManager

procedure TDatabaseManager.DestroyDatabase;

See also