/// <summary> /// delete database /// </summary> /// <returns></returns> public void DropDatabase(String DatabaseName) { //数据库连接 if (_connectionConfig.IsAutoCloseConnection == false) { if (_database.CheckStatus() == false) { throw new Exception("databse connect not open"); } } if (_connectionConfig.IsAutoCloseConnection == true) { _database.Open(); } _database.DropDatabase(DatabaseName); if (_connectionConfig.IsAutoCloseConnection == true) { _database.Close(); } }