- Timestamp:
- 06/06/11 17:49:27 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HeuristicLab.Services.Hive.DataAccess-3.4.csproj
r5852 r6369 71 71 </PropertyGroup> 72 72 <ItemGroup> 73 <Reference Include="HeuristicLab.Clients.Common-3.3">74 <HintPath>C:\Program Files\HeuristicLab 3.3\HeuristicLab.Clients.Common-3.3.dll</HintPath>75 </Reference>76 73 <Reference Include="HeuristicLab.Common-3.3"> 77 74 <HintPath>C:\Program Files\HeuristicLab 3.3\HeuristicLab.Common-3.3.dll</HintPath> … … 118 115 <DependentUpon>Settings.settings</DependentUpon> 119 116 </Compile> 120 <Compile Include="Tools\CreateHiveDatabaseApplication.cs" />121 117 <Compile Include="TransactionManager.cs" /> 122 118 </ItemGroup> … … 151 147 </ItemGroup> 152 148 <ItemGroup> 153 <Content Include="Tools\cleanHiveDatabase.sql" />154 149 <Content Include="Tools\prepareHiveDatabase.sql" /> 155 150 </ItemGroup> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HeuristicLabServicesHiveDataAccessPlugin.cs.frame
r6033 r6369 8 8 [Plugin("HeuristicLab.Services.Hive.DataAccess", "3.4.0.$WCREV$")] 9 9 [PluginFile("HeuristicLab.Services.Hive.DataAccess-3.4.dll", PluginFileType.Assembly)] 10 [PluginDependency("HeuristicLab.Clients.Common", "3.3")]11 10 [PluginDependency("HeuristicLab.Common", "3.3")] 12 11 [PluginDependency("HeuristicLab.Core", "3.3")] -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDao.cs
r6367 r6369 152 152 153 153 #region JobData Methods 154 155 154 public DT.JobData GetJobData(Guid id) { 156 155 using (var db = CreateContext()) { … … 193 192 194 193 #region StateLog Methods 195 196 194 public DT.StateLog GetStateLog(Guid id) { 197 195 using (var db = CreateContext()) { … … 285 283 286 284 #region HiveExperimentPermission Methods 287 288 285 public DT.HiveExperimentPermission GetHiveExperimentPermission(Guid hiveExperimentId, Guid grantedUserId) { 289 286 using (var db = CreateContext()) { … … 322 319 } 323 320 } 324 325 321 #endregion 326 322 … … 366 362 367 363 #region PluginData Methods 368 369 364 public DT.PluginData GetPluginData(Guid id) { 370 365 using (var db = CreateContext()) { … … 399 394 public void DeletePluginData(Guid id) { 400 395 using (var db = CreateContext()) { 401 var entity = db.PluginDatas.FirstOrDefault(x => x.PluginDataId == id); // todo: check if all the byte[] is loaded into memory here. otherwise work around to delete without loading it396 var entity = db.PluginDatas.FirstOrDefault(x => x.PluginDataId == id); 402 397 if (entity != null) db.PluginDatas.DeleteOnSubmit(entity); 403 398 db.SubmitChanges(); … … 611 606 } 612 607 } 613 614 608 #endregion 615 609 … … 682 676 using (var db = CreateContext()) { 683 677 return Convert.ToDto(db.Statistics.SingleOrDefault(x => x.StatisticsId == id)); 684 685 678 } 686 679 }
Note: See TracChangeset
for help on using the changeset viewer.