Here is my code example:
using (IDbConnection con = new SqlConnection(Constants.DefaultConnectionString)) { if (con.State == ConnectionState.Closed)