Changeset 9700 for stable/HeuristicLab.Services.Hive/3.3/Convert.cs
- Timestamp:
- 07/06/13 11:38:38 (11 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9665-9666,9675
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Services.Hive
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Services.Hive/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 *.user
-
- Property svn:ignore
-
stable/HeuristicLab.Services.Hive/3.3/Convert.cs
r9456 r9700 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.