Check for active connection in NHibernate
Posted
by Dofs
on Stack Overflow
See other posts from Stack Overflow
or by Dofs
Published on 2010-05-02T13:10:28Z
Indexed on
2010/05/02
13:47 UTC
Read the original article
Hit count: 226
nhibernate
|sql-server
I have a system with a few different databases, and I would like to check if a certain database is down, and if so display a message to the user.
Is it possible in NHibernate to check if there is an active connection to the database, without having to request data and then catch the exception?
© Stack Overflow or respective owner