Changeset 9665 for trunk/sources/HeuristicLab.Services.Hive/3.3/Convert.cs
- Timestamp:
- 06/28/13 12:05:53 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.Hive
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive
- Property svn:mergeinfo changed
/branches/HivePerformance/sources/HeuristicLab.Services.Hive (added) merged: 9369,9381,9385,9391,9393,9397,9399,9434,9444,9469,9485,9539,9634-9636
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Services.Hive/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 *.user
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Services.Hive/3.3/Convert.cs
r9456 r9665 102 102 public static DT.TaskData ToDto(DB.TaskData source) { 103 103 if (source == null) return null; 104 return new DT.TaskData { TaskId = source.TaskId, Data = source.Data .ToArray(), LastUpdate = source.LastUpdate };104 return new DT.TaskData { TaskId = source.TaskId, Data = source.Data, LastUpdate = source.LastUpdate }; 105 105 } 106 106 public static DB.TaskData ToEntity(DT.TaskData source) { … … 111 111 public static void ToEntity(DT.TaskData source, DB.TaskData target) { 112 112 if ((source != null) && (target != null)) { 113 target.TaskId = source.TaskId; target.Data = new Binary(source.Data); target.LastUpdate = source.LastUpdate; 113 target.TaskId = source.TaskId; 114 target.Data = source.Data; 115 target.LastUpdate = source.LastUpdate; 114 116 } 115 117 } … … 213 215 public static void ToEntity(DT.PluginData source, DB.PluginData target) { 214 216 if ((source != null) && (target != null)) { 215 target.PluginDataId = source.Id; target.PluginId = source.PluginId; target.Data = new Binary(source.Data); target.FileName = source.FileName; 217 target.PluginDataId = source.Id; 218 target.PluginId = source.PluginId; 219 target.Data = source.Data; 220 target.FileName = source.FileName; 216 221 } 217 222 }
Note: See TracChangeset
for help on using the changeset viewer.