Exemple #1
0
 public static void SetInstance()
 {
     if (_instance != null)
     {
         _instance._connection.Close();
     }
     _instance = new DbController();
 }
Exemple #2
0
 public static DbController GetInstance()
 {
     if (_instance == null)
     {
         _instance = new DbController();
     }
     return _instance;
 }