Changeset 9634 for branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/ServiceLocator.cs
- Timestamp:
- 06/17/13 10:51:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/ServiceLocator.cs
r9539 r9634 42 42 } 43 43 44 private IOptimizedHiveDao optimizedHiveDao;45 44 public IOptimizedHiveDao OptimizedHiveDao { 46 45 get { 47 if (optimizedHiveDao == null) optimizedHiveDao = new OptimizedHiveDao(); 48 return optimizedHiveDao; 46 var dataContext = HiveOperationContext.Current != null 47 ? HiveOperationContext.Current.DataContext 48 : new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString); 49 return new OptimizedHiveDao(dataContext); 49 50 } 50 51 }
Note: See TracChangeset
for help on using the changeset viewer.