Ignore:
Timestamp:
01/12/16 16:08:38 (5 years ago)
Author:
abeham
Message:

#2560: added service methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.OKB/3.3/Query/QueryService.cs

    r12012 r13501  
    278278    }
    279279
     280
     281    public IEnumerable<DataTransfer.Value> GetCharacteristics(long problemId) {
     282      using (OKBDataContext okb = new OKBDataContext()) {
     283        var prob = okb.Problems.SingleOrDefault(x => x.Id == problemId);
     284        if (prob == null) return Enumerable.Empty<DataTransfer.Value>();
     285        return prob.CharacteristicValues.Select(Convert.ToDto).ToArray();
     286      }
     287    }
     288
    280289    private List<DataAccess.Run> FilterRuns(IQueryable<DataAccess.Run> runs, Filter filter, OKBDataContext okb) {
    281290      IFilter f = (IFilter)Activator.CreateInstance(Type.GetType(filter.FilterTypeName), filter);
Note: See TracChangeset for help on using the changeset viewer.