public static ConnectingDB Instance() { if (uniqueInstance == null) { uniqueInstance = new ConnectingDB(); } return(uniqueInstance); }
static void Main(string[] args) { Console.WriteLine("Hello World!"); ConnectingDB c1 = null; UsingDB usingDB = new UsingDB(c1); usingDB.SelectAllFromCity(); Console.ReadKey(); }
public UsingDB(ConnectingDB connectingDB) { Instance(); }