- Timestamp:
- 07/03/15 16:35:17 (9 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/AssignedResourceDao.cs
r12468 r12584 22 22 using System; 23 23 using System.Data.Linq; 24 using System.Linq; 24 25 25 26 namespace HeuristicLab.Services.Hive.DataAccess.Daos { … … 30 31 throw new NotImplementedException(); 31 32 } 33 34 public IQueryable<AssignedResource> GetByTaskId(Guid taskId) { 35 return Table.Where(x => x.TaskId == taskId); 36 } 32 37 } 33 38 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/JobPermissionDao.cs
r12468 r12584 22 22 using System; 23 23 using System.Data.Linq; 24 using System.Linq; 24 25 25 26 namespace HeuristicLab.Services.Hive.DataAccess.Daos { … … 30 31 throw new NotImplementedException(); 31 32 } 33 34 public JobPermission GetByJobAndUserId(Guid jobId, Guid userId) { 35 return Table.SingleOrDefault(x => x.JobId == jobId && x.GrantedUserId == userId); 36 } 32 37 } 33 38 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/StateLogDao.cs
r12468 r12584 26 26 namespace HeuristicLab.Services.Hive.DataAccess.Daos { 27 27 public class StateLogDao : GenericDao<Guid, StateLog> { 28 29 private Table<Task> TaskTable { 30 get { return DataContext.GetTable<Task>(); } 31 } 32 28 33 public StateLogDao(DataContext dataContext) : base(dataContext) { } 29 34 -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/TaskDao.cs
r12516 r12584 36 36 } 37 37 38 public IQueryable<Task> Get AllByJobId(Guid id) {38 public IQueryable<Task> GetByJobId(Guid id) { 39 39 return Table.Where(x => x.JobId == id); 40 40 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql
r12551 r12584 256 256 CONSTRAINT [FK_FactClientInfo_DimUser] FOREIGN KEY ([UserId]) REFERENCES [statistics].[DimUser] ([UserId]) 257 257 ); 258 259 258 CREATE TABLE [statistics].[FactTask] ( 260 259 [TaskId] UNIQUEIDENTIFIER NOT NULL, -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/app.config
r11623 r12584 7 7 </configSections> 8 8 <connectionStrings> 9 <add name="HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString" connectionString="Data Source= localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;" providerName="System.Data.SqlClient"/>9 <add name="HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;" providerName="System.Data.SqlClient"/> 10 10 </connectionStrings> 11 11 <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup><applicationSettings>
Note: See TracChangeset
for help on using the changeset viewer.