- Timestamp:
- 06/13/11 00:27:59 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4
- Files:
-
- 5 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 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HeuristicLab.Services.Hive.DataAccess-3.4.csproj
r6369 r6407 115 115 <DependentUpon>Settings.settings</DependentUpon> 116 116 </Compile> 117 <Compile Include="Tools\CreateHiveDatabaseApplication.cs" /> 117 118 <Compile Include="TransactionManager.cs" /> 118 119 </ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml
r6267 r6407 17 17 <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" /> 18 18 <Column Name="DateCreated" Type="System.DateTime" DbType="DateTime" CanBeNull="false" /> 19 <Column Name="Hash" Type="System.Byte[]" DbType="VarBinary(20)" CanBeNull="true" /> 19 20 <Association Name="Plugin_RequiredPlugin" Member="RequiredPlugins" ThisKey="PluginId" OtherKey="PluginId" Type="RequiredPlugin" /> 20 21 <Association Name="Plugin_PluginData" Member="PluginData" ThisKey="PluginId" OtherKey="PluginId" Type="PluginData" /> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml.layout
r6267 r6407 9 9 </nestedChildShapes> 10 10 </classShape> 11 <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="8.875, 5.5, 2, 1.9631982421874996">11 <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="8.875, 5.5, 2, 2.1554996744791666"> 12 12 <DataClassMoniker Name="/HiveDataContext/Plugin" /> 13 13 <nestedChildShapes> 14 <elementListCompartment Id="ec4ba325-6dff-4418-baad-59af81ae2024" absoluteBounds="8.89, 5.9600000000000009, 1.9700000000000002, 1. 4031982421875" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />14 <elementListCompartment Id="ec4ba325-6dff-4418-baad-59af81ae2024" absoluteBounds="8.89, 5.9600000000000009, 1.9700000000000002, 1.5954996744791665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 15 15 </nestedChildShapes> 16 16 </classShape> … … 76 76 </nodes> 77 77 </associationConnector> 78 <associationConnector edgePoints="[(7. 803710203125 : 4.30930826822917); (7.803710203125 : 4.84780160677083); (8.875 : 4.84780160677083)]" fixedFrom="Algorithm" fixedTo="Algorithm">78 <associationConnector edgePoints="[(7.5 : 4.30930826822917); (7.5 : 4.84780160677083); (8.875 : 4.84780160677083)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 79 79 <AssociationMoniker Name="/HiveDataContext/Job/Job_AssignedResource" /> 80 80 <nodes> … … 83 83 </nodes> 84 84 </associationConnector> 85 <associationConnector edgePoints="[(7.0893551015625 : 4.30930826822917); (7.0893551015625 : 5.5)]" fixedFrom=" Algorithm" fixedTo="Algorithm">85 <associationConnector edgePoints="[(7.0893551015625 : 4.30930826822917); (7.0893551015625 : 5.5)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 86 86 <AssociationMoniker Name="/HiveDataContext/Job/Job_RequiredPlugin" /> 87 87 <nodes> … … 123 123 </nodes> 124 124 </associationConnector> 125 <associationConnector edgePoints="[(6.5 : 1.69314697265625); (6.125 : 1.69314697265625)]" fixedFrom=" Algorithm" fixedTo="Algorithm">125 <associationConnector edgePoints="[(6.5 : 1.69314697265625); (6.125 : 1.69314697265625)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 126 126 <AssociationMoniker Name="/HiveDataContext/Job/Job_JobData" /> 127 127 <nodes> … … 156 156 </nestedChildShapes> 157 157 </classShape> 158 <associationConnector edgePoints="[(6.5 : 2.50564697265625); (3.75 : 2.50564697265625)]" fixedFrom=" Algorithm" fixedTo="Algorithm">158 <associationConnector edgePoints="[(6.5 : 2.50564697265625); (3.75 : 2.50564697265625)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 159 159 <AssociationMoniker Name="/HiveDataContext/Job/Job_StateLog" /> 160 160 <nodes> … … 163 163 </nodes> 164 164 </associationConnector> 165 <associationConnector edgePoints="[(11.25 : 1.78929768880208); (10.9375 : 1.78929768880208); (10.9375 : 0.6875); (2.75 : 0.6875); (2.75 : 1)]" fixedFrom=" Algorithm" fixedTo="Algorithm">165 <associationConnector edgePoints="[(11.25 : 1.78929768880208); (10.9375 : 1.78929768880208); (10.9375 : 0.6875); (2.75 : 0.6875); (2.75 : 1)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 166 166 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_StateLog" /> 167 167 <nodes> … … 183 183 </nestedChildShapes> 184 184 </classShape> 185 <associationConnector edgePoints="[(6.125 : 3.46715413411458); (6.5 : 3.46715413411458)]" fixedFrom=" Algorithm" fixedTo="Algorithm">185 <associationConnector edgePoints="[(6.125 : 3.46715413411458); (6.5 : 3.46715413411458)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 186 186 <AssociationMoniker Name="/HiveDataContext/HiveExperiment/HiveExperiment_Job" /> 187 187 <nodes> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.designer.cs
r6267 r6407 444 444 private System.DateTime _DateCreated; 445 445 446 private byte[] _Hash; 447 446 448 private EntitySet<RequiredPlugin> _RequiredPlugins; 447 449 … … 464 466 partial void OnDateCreatedChanging(System.DateTime value); 465 467 partial void OnDateCreatedChanged(); 468 partial void OnHashChanging(byte[] value); 469 partial void OnHashChanged(); 466 470 #endregion 467 471 … … 589 593 this.SendPropertyChanged("DateCreated"); 590 594 this.OnDateCreatedChanged(); 595 } 596 } 597 } 598 599 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Hash", DbType="VarBinary(20)")] 600 public byte[] Hash 601 { 602 get 603 { 604 return this._Hash; 605 } 606 set 607 { 608 if ((this._Hash != value)) 609 { 610 this.OnHashChanging(value); 611 this.SendPropertyChanging(); 612 this._Hash = value; 613 this.SendPropertyChanged("Hash"); 614 this.OnHashChanged(); 591 615 } 592 616 }
Note: See TracChangeset
for help on using the changeset viewer.