- Timestamp:
- 01/20/12 15:02:06 (13 years ago)
- Location:
- branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/HeuristicLab.Services.OKB-3.3.csproj
r7382 r7385 218 218 <SubType>Code</SubType> 219 219 </Compile> 220 <Compile Include="Query\Filters\RunRandomSeedFilter.cs">221 <SubType>Code</SubType>222 </Compile>223 220 <Compile Include="Query\Filters\RunUserNameFilter.cs"> 224 221 <SubType>Code</SubType> -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/Convert.cs
r7331 r7385 29 29 public static DT.Run ToDto(DA.Run source, bool includeBinaryValues) { 30 30 if (source == null) return null; 31 var dto = new DT.Run { Id = source.Id, Algorithm = Convert.ToDto(source.Algorithm), Problem = Convert.ToDto(source.Problem), CreatedDate = source.CreatedDate, RandomSeed = source.RandomSeed,ClientId = source.ClientId, UserId = source.UserId };31 var dto = new DT.Run { Id = source.Id, Algorithm = Convert.ToDto(source.Algorithm), Problem = Convert.ToDto(source.Problem), CreatedDate = source.CreatedDate, ClientId = source.ClientId, UserId = source.UserId }; 32 32 dto.ParameterValues = source.Values.Where(x => x.ValueName.Category == DA.ValueNameCategory.Parameter).Select(x => Convert.ToDto(x, includeBinaryValues)).ToArray(); 33 33 dto.ResultValues = source.Values.Where(x => x.ValueName.Category == DA.ValueNameCategory.Result).Select(x => Convert.ToDto(x, includeBinaryValues)).ToArray(); -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/DataTransfer/Run.cs
r7331 r7385 34 34 public Problem Problem { get; set; } 35 35 [DataMember] 36 public int RandomSeed { get; set; }37 [DataMember]38 36 public DateTime CreatedDate { get; set; } 39 37 [DataMember] -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Query/QueryService.cs
r7331 r7385 39 39 using (OKBDataContext okb = new OKBDataContext()) { 40 40 #region Run Filters 41 filters.Add(new OrdinalComparisonLongFilter(typeof(RunRandomSeedFilter).AssemblyQualifiedName, "Run Random Seed"));42 41 filters.Add(new OrdinalComparisonDateTimeFilter(typeof(RunCreatedDateFilter).AssemblyQualifiedName, "Run Created Date")); 43 42 filters.Add(new StringComparisonFilter(typeof(RunUserNameFilter).AssemblyQualifiedName, "Run User Name")); -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/RunCreation/Convert.cs
r7331 r7385 58 58 public static DA.Run ToEntity(DT.Run source, DA.OKBDataContext okb) { 59 59 if (source == null) return null; 60 DA.Run entity = new DA.Run { Id = 0, AlgorithmId = source.AlgorithmId, ProblemId = source.ProblemId, RandomSeed = source.RandomSeed,CreatedDate = source.CreatedDate, UserId = source.UserId, ClientId = source.ClientId };60 DA.Run entity = new DA.Run { Id = 0, AlgorithmId = source.AlgorithmId, ProblemId = source.ProblemId, CreatedDate = source.CreatedDate, UserId = source.UserId, ClientId = source.ClientId }; 61 61 foreach (var value in source.ParameterValues) 62 62 entity.Values.Add(Convert.ToEntity(value, entity, DA.ValueNameCategory.Parameter, okb)); -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/RunCreation/DataTransfer/Run.cs
r7331 r7385 32 32 public long ProblemId { get; set; } 33 33 [DataMember] 34 public int RandomSeed { get; set; }35 [DataMember]36 34 public DateTime CreatedDate { get; set; } 37 35 [DataMember]
Note: See TracChangeset
for help on using the changeset viewer.