- Timestamp:
- 05/06/13 12:30:18 (12 years ago)
- Location:
- branches/HivePerformance/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 9376,9379,9388,9390,9396,9402-9410,9413,9417,9426-9429,9432-9433,9435-9439,9441-9443
- Property svn:mergeinfo changed
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Services.Hive (added) merged: 9426-9428
- Property svn:mergeinfo changed
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/Convert.cs
r9434 r9444 67 67 target.LastHeartbeat = source.LastHeartbeat; 68 68 target.State = Convert.ToEntity(source.State); 69 if (target.StateLogs == null) target.StateLogs = new EntitySet<DB.StateLog>();70 69 foreach (DT.StateLog sl in source.StateLog.Where(x => x.Id == Guid.Empty)) { 71 70 target.StateLogs.Add(Convert.ToEntity(sl)); -
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/HiveDao.cs
r9434 r9444 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Data.Linq; 24 25 using System.Linq; 25 26 using System.Linq.Expressions; … … 120 121 public void UpdateTaskAndStateLogs(DT.Task dto) { 121 122 using (var db = CreateContext()) { 123 DataLoadOptions dlo = new DataLoadOptions(); 124 dlo.LoadWith<Task>(x => x.StateLogs); 125 db.LoadOptions = dlo; 126 122 127 var entity = db.Tasks.FirstOrDefault(x => x.TaskId == dto.Id); 123 128 if (entity == null) db.Tasks.InsertOnSubmit(DT.Convert.ToEntity(dto)); … … 205 210 DateTime = DateTime.Now 206 211 }); 207 db.SubmitChanges();208 }209 210 using (var db = CreateContext()) {211 db.DeferredLoadingEnabled = false;212 212 213 213 var task = db.Tasks.SingleOrDefault(x => x.TaskId == taskId); -
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/HiveOperationContext.cs
r9434 r9444 44 44 } 45 45 46 47 46 public void Attach(OperationContext owner) { 48 47 }
Note: See TracChangeset
for help on using the changeset viewer.