Changeset 9427
- Timestamp:
- 05/02/13 15:17:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive/3.3/HiveDao.cs
r9304 r9427 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; … … 122 123 public void UpdateTaskAndStateLogs(DT.Task dto) { 123 124 using (var db = CreateContext()) { 125 DataLoadOptions dlo = new DataLoadOptions(); 126 dlo.LoadWith<Task>(x => x.StateLogs); 127 db.LoadOptions = dlo; 128 124 129 var entity = db.Tasks.FirstOrDefault(x => x.TaskId == dto.Id); 125 130 if (entity == null) db.Tasks.InsertOnSubmit(DT.Convert.ToEntity(dto));
Note: See TracChangeset
for help on using the changeset viewer.