Changeset 5295 for branches/OKB/HeuristicLab.Services.OKB/3.3/Convert.cs
- Timestamp:
- 01/14/11 05:34:43 (14 years ago)
- Location:
- branches/OKB
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB
- Property svn:ignore
-
old new 1 1 *.suo 2 TestResults
-
- Property svn:ignore
-
branches/OKB/HeuristicLab.Services.OKB/3.3/Convert.cs
r4591 r5295 47 47 public static DT.DataType ToDto(DA.DataType source) { 48 48 if (source == null) return null; 49 return new DT.DataType { Id = source.Id, Name = source.Name, SqlName = source.SqlName, PlatformId = source.PlatformId };49 return new DT.DataType { Id = source.Id, Name = source.Name, TypeName = source.TypeName, SqlName = source.SqlName, PlatformId = source.PlatformId }; 50 50 } 51 51 public static DA.DataType ToEntity(DT.DataType source) { 52 52 if (source == null) return null; 53 return new DA.DataType { Id = source.Id, Name = source.Name, SqlName = source.SqlName, PlatformId = source.PlatformId };53 return new DA.DataType { Id = source.Id, Name = source.Name, TypeName = source.TypeName, SqlName = source.SqlName, PlatformId = source.PlatformId }; 54 54 } 55 55 public static void ToEntity(DT.DataType source, DA.DataType target) { 56 56 if ((source != null) && (target != null)) { 57 target.Id = source.Id; target.Name = source.Name; target. SqlName = source.SqlName; target.PlatformId = source.PlatformId;57 target.Id = source.Id; target.Name = source.Name; target.TypeName = source.TypeName; target.SqlName = source.SqlName; target.PlatformId = source.PlatformId; 58 58 } 59 59 } … … 515 515 public static DT.Run ToDto(DA.Run source) { 516 516 if (source == null) return null; 517 DT.Run target = new DT.Run { Id = source.Id, RandomSeed = source.RandomSeed, FinishedDate = source.FinishedDate, ExperimentId = source.ExperimentId, UserId = source.UserId, ClientId = source.ClientId };517 DT.Run target = new DT.Run { Id = source.Id, RandomSeed = source.RandomSeed, CreatedDate = source.CreatedDate, ExperimentId = source.ExperimentId, UserId = source.UserId, ClientId = source.ClientId }; 518 518 519 519 List<DT.ResultValue> resultValues = new List<DT.ResultValue>(); … … 540 540 public static void ToEntity(DT.Run source, DA.Run target) { 541 541 if ((source != null) && (target != null)) { 542 target.Id = source.Id; target.RandomSeed = source.RandomSeed; target. FinishedDate = source.FinishedDate; target.ExperimentId = source.ExperimentId; target.UserId = source.UserId; target.ClientId = source.ClientId;542 target.Id = source.Id; target.RandomSeed = source.RandomSeed; target.CreatedDate = source.CreatedDate; target.ExperimentId = source.ExperimentId; target.UserId = source.UserId; target.ClientId = source.ClientId; 543 543 544 544 foreach (DT.ResultBlobValue value in source.ResultValues.OfType<DT.ResultBlobValue>())
Note: See TracChangeset
for help on using the changeset viewer.