Changeset 6407 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Convert.cs
- Timestamp:
- 06/13/11 00:27:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Convert.cs
r6372 r6407 167 167 public static DT.Plugin ToDto(Plugin source) { 168 168 if (source == null) return null; 169 return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, IsLocal = source.IsLocal, DateCreated = source.DateCreated };169 return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, IsLocal = source.IsLocal, DateCreated = source.DateCreated, Hash = source.Hash }; 170 170 } 171 171 public static Plugin ToEntity(DT.Plugin source) { … … 176 176 public static void ToEntity(DT.Plugin source, Plugin target) { 177 177 if ((source != null) && (target != null)) { 178 target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.IsLocal = source.IsLocal; target.DateCreated = source.DateCreated; 178 target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.IsLocal = source.IsLocal; target.DateCreated = source.DateCreated; target.Hash = source.Hash; 179 179 } 180 180 }
Note: See TracChangeset
for help on using the changeset viewer.