Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/24/12 15:24:24 (12 years ago)
Author:
jkarder
Message:

#1712: initial commit

Location:
branches/HiveTaskScheduler
Files:
1 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/HiveTaskScheduler/HeuristicLab.Services.Hive/3.3/Convert.cs

    r7916 r8687  
    527527    }
    528528    #endregion
     529
     530    #region UserPriority
     531    public static DT.UserPriority ToDto(DB.UserPriority source) {
     532      if (source == null) return null;
     533      return new DT.UserPriority() { UserId = source.UserId };
     534    }
     535    public static DB.UserPriority ToEntity(DT.UserPriority source) {
     536      if (source == null) return null;
     537      var entity = new DB.UserPriority(); ToEntity(source, entity);
     538      return entity;
     539    }
     540    public static void ToEntity(DT.UserPriority source, DB.UserPriority target) {
     541      if ((source != null) && (target != null)) {
     542        target.UserId = source.UserId;
     543      }
     544    }
     545    #endregion
    529546  }
    530547}
Note: See TracChangeset for help on using the changeset viewer.