public static UsuarioDataService GetInstance(string connectionString)
 {
     if (_instance == null)
     {
         lock (_lock)
         {
             if (_instance == null)
             {
                 _instance = new UsuarioDataService(connectionString);
             }
         }
     }
     return(_instance);
 }
示例#2
0
 public UsuarioService(string connectionString)
 {
     _dataService = UsuarioDataService.GetInstance(connectionString);
 }