Ejemplo n.º 1
0
 public static ConnectionManager GetInstance()
 {
     if (_theUniqueInstance == null)
         return _theUniqueInstance = new ConnectionManager();
     else
         return _theUniqueInstance;
 }
Ejemplo n.º 2
0
 public static ConnectionManager GetInstance(string pLogin, string pPassword, string pServer, string pDatabase, string pTimeout, bool integrated)
 {
     if (_theUniqueInstance == null)
         return _theUniqueInstance = new ConnectionManager(pLogin, pPassword, pServer, pDatabase, pTimeout, integrated);
     else
         return _theUniqueInstance;
 }
Ejemplo n.º 3
0
 public static void KillSingleton()
 {
     _theUniqueInstance = null;
 }