Is it necessary to deconstruct singleton sql connections?
问题 Normally I'm using the statements: using (SqlConnection connection = new SqlConnection("Data ...")) { .... } to define areas where I use sql commands. Now for a specific application I'm considering putting the sql connection into a singleton instead of the above construct: public class SimpleClass { // Static variable that must be initialized at run time. public static SqlConnection singletonConnection; // Static constructor is called at most one time, before any // instance constructor is