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