public static void DropDatabase(string connectionString) { FbConnectionString options = new FbConnectionString(connectionString); options.Validate(); try { FbConnectionInternal db = new FbConnectionInternal(options); db.DropDatabase(); } catch (IscException ex) { throw new FbException(ex.Message, ex); } }
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); } }
static async Task DropDatabaseImpl(string connectionString, AsyncWrappingCommonArgs async) { var options = new ConnectionString(connectionString); options.Validate(); try { var db = new FbConnectionInternal(options); try { await db.DropDatabase(async).ConfigureAwait(false); } finally { await db.Disconnect(async).ConfigureAwait(false); } } catch (IscException ex) { throw FbException.Create(ex); } }
public static void DropDatabase(string connectionString) { // Configure Attachment FbConnectionString options = new FbConnectionString(connectionString); options.Validate(); try { // Drop the database FbConnectionInternal db = new FbConnectionInternal(options); db.DropDatabase(); } catch (IscException ex) { throw new FbException(ex.Message, ex); } }