Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/14/11 05:34:43 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

Location:
branches/OKB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB

    • Property svn:ignore
      •  

        old new  
        11*.suo
         2TestResults
  • branches/OKB/HeuristicLab.Services.OKB/3.3/Convert.cs

    r4591 r5295  
    4747    public static DT.DataType ToDto(DA.DataType source) {
    4848      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 };
    5050    }
    5151    public static DA.DataType ToEntity(DT.DataType source) {
    5252      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 };
    5454    }
    5555    public static void ToEntity(DT.DataType source, DA.DataType target) {
    5656      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;
    5858      }
    5959    }
     
    515515    public static DT.Run ToDto(DA.Run source) {
    516516      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 };
    518518
    519519      List<DT.ResultValue> resultValues = new List<DT.ResultValue>();
     
    540540    public static void ToEntity(DT.Run source, DA.Run target) {
    541541      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;
    543543
    544544        foreach (DT.ResultBlobValue value in source.ResultValues.OfType<DT.ResultBlobValue>())
Note: See TracChangeset for help on using the changeset viewer.