- Timestamp:
- 06/16/11 12:39:32 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Convert.cs
r6407 r6426 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, Hash = source.Hash };169 return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, 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; target.Hash = source.Hash;178 target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.DateCreated = source.DateCreated; target.Hash = source.Hash; 179 179 } 180 180 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml
r6407 r6426 14 14 <Column Name="Name" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" /> 15 15 <Column Name="Version" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" /> 16 <Column Name="IsLocal" Type="System.Boolean" DbType="Bit" CanBeNull="false" />17 16 <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" /> 18 17 <Column Name="DateCreated" Type="System.DateTime" DbType="DateTime" CanBeNull="false" /> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.dbml.layout
r6407 r6426 9 9 </nestedChildShapes> 10 10 </classShape> 11 <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="8.875, 5.5, 2, 2.1554996744791666">11 <classShape Id="7d998e56-4fba-41ca-a1a8-1dcdb9068edf" absoluteBounds="8.875, 5.5, 2, 1.9631982421874996"> 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. 5954996744791665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />14 <elementListCompartment Id="ec4ba325-6dff-4418-baad-59af81ae2024" absoluteBounds="8.89, 5.9600000000000009, 1.9700000000000002, 1.4031982421875" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 15 15 </nestedChildShapes> 16 16 </classShape> … … 76 76 </nodes> 77 77 </associationConnector> 78 <associationConnector edgePoints="[(7.5 : 4.30930826822917); (7.5 : 4.84780160677083); (8.875 : 4.84780160677083)]" fixedFrom=" NotFixed" fixedTo="NotFixed">78 <associationConnector edgePoints="[(7.5 : 4.30930826822917); (7.5 : 4.84780160677083); (8.875 : 4.84780160677083)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 79 79 <AssociationMoniker Name="/HiveDataContext/Job/Job_AssignedResource" /> 80 80 <nodes> … … 116 116 </nestedChildShapes> 117 117 </classShape> 118 <associationConnector edgePoints="[(10.875 : 6.28929768880208); (11.25 : 6.28929768880208)]" fixedFrom=" NotFixed" fixedTo="NotFixed">118 <associationConnector edgePoints="[(10.875 : 6.28929768880208); (11.25 : 6.28929768880208)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 119 119 <AssociationMoniker Name="/HiveDataContext/Plugin/Plugin_PluginData" /> 120 120 <nodes> … … 130 130 </nodes> 131 131 </associationConnector> 132 <associationConnector edgePoints="[(8.875 : 6.19314697265625); (8.5 : 6.19314697265625)]" fixedFrom=" NotFixed" fixedTo="NotFixed">132 <associationConnector edgePoints="[(8.875 : 6.19314697265625); (8.5 : 6.19314697265625)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 133 133 <AssociationMoniker Name="/HiveDataContext/Plugin/Plugin_RequiredPlugin" /> 134 134 <nodes> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.designer.cs
r6407 r6426 438 438 private string _Version; 439 439 440 private bool _IsLocal;441 442 440 private System.Guid _UserId; 443 441 … … 460 458 partial void OnVersionChanging(string value); 461 459 partial void OnVersionChanged(); 462 partial void OnIsLocalChanging(bool value);463 partial void OnIsLocalChanged();464 460 partial void OnUserIdChanging(System.Guid value); 465 461 partial void OnUserIdChanged(); … … 533 529 this.SendPropertyChanged("Version"); 534 530 this.OnVersionChanged(); 535 }536 }537 }538 539 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsLocal", DbType="Bit")]540 public bool IsLocal541 {542 get543 {544 return this._IsLocal;545 }546 set547 {548 if ((this._IsLocal != value))549 {550 this.OnIsLocalChanging(value);551 this.SendPropertyChanging();552 this._IsLocal = value;553 this.SendPropertyChanged("IsLocal");554 this.OnIsLocalChanged();555 531 } 556 532 }
Note: See TracChangeset
for help on using the changeset viewer.