Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9427


Ignore:
Timestamp:
05/02/13 15:17:24 (12 years ago)
Author:
ascheibe
Message:

#2019 added LoadWith for UpdateTaskAndStateLogs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Hive/3.3/HiveDao.cs

    r9304 r9427  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Data.Linq;
    2425using System.Linq;
    2526using System.Linq.Expressions;
     
    122123    public void UpdateTaskAndStateLogs(DT.Task dto) {
    123124      using (var db = CreateContext()) {
     125        DataLoadOptions dlo = new DataLoadOptions();
     126        dlo.LoadWith<Task>(x => x.StateLogs);
     127        db.LoadOptions = dlo;
     128
    124129        var entity = db.Tasks.FirstOrDefault(x => x.TaskId == dto.Id);
    125130        if (entity == null) db.Tasks.InsertOnSubmit(DT.Convert.ToEntity(dto));
Note: See TracChangeset for help on using the changeset viewer.