Exemple #1
0
    public static void DropDatabase(string connectionString)
    {
        var options = new ConnectionString(connectionString);

        options.Validate();

        try
        {
            var db = new FbConnectionInternal(options);
            try
            {
                db.DropDatabase();
            }
            finally
            {
                db.Disconnect();
            }
        }
        catch (IscException ex)
        {
            throw FbException.Create(ex);
        }
    }