Beispiel #1
0
 public static CuentaDataService GetInstance(string connectionString)
 {
     if (_instance == null)
     {
         lock (_lock)
         {
             if (_instance == null)
             {
                 _instance = new CuentaDataService(connectionString);
             }
         }
     }
     return(_instance);
 }
Beispiel #2
0
 public CuentaService(string connectionString)
 {
     _dataService = CuentaDataService.GetInstance(connectionString);
 }