In my win app – I want to display an information (or db icon) if the database server is not reachable. But i dont want to wait the 30sec timeout. The user can configure server, user, pw in my options dialog.
So, is there a way in subsonic to check very fast if an db connection works?
In my win app – I want to display an information (or db icon)
Share
In the current revision (521) there is an IsOnline() method you can use with the repository pattern. It currently always returns true (see here)…but once that’s fixed, you could use the overloaded method that passes in a connection string with a short timeout.
http://code.google.com/p/subsonicproject/source/browse/trunk/SubSonic/Sql%20Tools/SubSonicRepository.cs