public void Execute(IDatabaseConnection aConnection) { if (aConnection.CanConnect()) { aConnection.CreateTable <Entry>(); aConnection.CreateTable <PhoneBook>(); } }
private bool CanConnectToDatabase(Dictionary <DatabaseParameter, String> databaseParams, String tableName) { bool canConnect = database.CanConnect(databaseParams, tableName); if (canConnect == false) { Console.WriteLine("Could not connect"); } return(canConnect); }