Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/18/15 17:28:03 (9 years ago)
Author:
dglaser
Message:

#2388: Created WebApp.Statistics plugin

Location:
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/HiveStatistics/DimJobDao.cs

    r12468 r12477  
    3131      return Table.SingleOrDefault(x => x.JobId == id);
    3232    }
     33
     34    public IQueryable<DimJob> GetByUserId(Guid id) {
     35      return Table.Where(x => x.UserId == id);
     36    }
    3337  }
    3438}
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/HiveStatistics/FactTaskDao.cs

    r12468 r12477  
    4040    }
    4141
     42    public IQueryable<FactTask> GetByJobId(Guid id) {
     43      return Table.Where(x => x.JobId == id);
     44    }
     45
    4246    public override void Delete(IEnumerable<Guid> ids) {
    4347      string paramIds = string.Join(",", ids.Select(x => string.Format("'{0}'", x)));
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml

    r12468 r12477  
    11<?xml version="1.0" encoding="utf-8"?><Database Name="HeuristicLab.Hive-3.3" Class="HiveDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
    2   <Connection Mode="AppSettings" ConnectionString="Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True" SettingsObjectName="HeuristicLab.Services.Hive.DataAccess.Settings" SettingsPropertyName="HeuristicLab_Hive_LinqConnectionString" Provider="System.Data.SqlClient" />
     2  <Connection Mode="AppSettings" ConnectionString="Data Source=.\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True" SettingsObjectName="HeuristicLab.Services.Hive.DataAccess.Settings" SettingsPropertyName="HeuristicLab_Hive_LinqConnectionString" Provider="System.Data.SqlClient" />
    33  <Table Name="dbo.AssignedResources" Member="AssignedResources">
    44    <Type Name="AssignedResource">
     
    251251      <Column Name="JobName" Type="System.String" DbType="VarChar(MAX) NOT NULL" CanBeNull="false" />
    252252      <Column Name="UserName" Type="System.String" DbType="VarChar(MAX) NOT NULL" CanBeNull="false" />
     253      <Column Member="DateCreated" Type="System.DateTime" CanBeNull="false" />
    253254      <Association Name="DimJob_FactTask" Member="FactTasks" ThisKey="JobId" OtherKey="JobId" Type="FactTask" />
    254255    </Type>
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml.layout

    r12468 r12477  
    259259      </nestedChildShapes>
    260260    </classShape>
    261     <classShape Id="e0cb8641-a75e-4b9f-beda-3218c56938b1" absoluteBounds="8.125, 9.125, 2, 1.5785953776041666">
     261    <classShape Id="e0cb8641-a75e-4b9f-beda-3218c56938b1" absoluteBounds="8.125, 9.125, 2, 1.7708968098958344">
    262262      <DataClassMoniker Name="/HiveDataContext/DimJob" />
    263263      <nestedChildShapes>
    264         <elementListCompartment Id="6b9e8260-7e4b-4357-9c26-eebebfd69504" absoluteBounds="8.14, 9.585, 1.9700000000000002, 1.0185953776041665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
     264        <elementListCompartment Id="6b9e8260-7e4b-4357-9c26-eebebfd69504" absoluteBounds="8.14, 9.585, 1.9700000000000002, 1.2108968098958333" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
    265265      </nestedChildShapes>
    266266    </classShape>
     
    290290      </nodes>
    291291    </associationConnector>
    292     <associationConnector edgePoints="[(8.5 : 10.7035953776042); (8.5 : 11.25)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     292    <associationConnector edgePoints="[(8.5 : 10.8958968098958); (8.5 : 11.25)]" fixedFrom="Algorithm" fixedTo="Algorithm">
    293293      <AssociationMoniker Name="/HiveDataContext/DimJob/DimJob_FactTask" />
    294294      <nodes>
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs

    r12468 r12477  
    54155415    private string _UserName;
    54165416   
     5417    private System.DateTime _DateCreated;
     5418   
    54175419    private EntitySet<FactTask> _FactTasks;
    54185420   
     
    54295431    partial void OnUserNameChanging(string value);
    54305432    partial void OnUserNameChanged();
     5433    partial void OnDateCreatedChanging(System.DateTime value);
     5434    partial void OnDateCreatedChanged();
    54315435    #endregion
    54325436   
     
    55135517          this.SendPropertyChanged("UserName");
    55145518          this.OnUserNameChanged();
     5519        }
     5520      }
     5521    }
     5522   
     5523    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated")]
     5524    public System.DateTime DateCreated
     5525    {
     5526      get
     5527      {
     5528        return this._DateCreated;
     5529      }
     5530      set
     5531      {
     5532        if ((this._DateCreated != value))
     5533        {
     5534          this.OnDateCreatedChanging(value);
     5535          this.SendPropertyChanging();
     5536          this._DateCreated = value;
     5537          this.SendPropertyChanged("DateCreated");
     5538          this.OnDateCreatedChanged();
    55155539        }
    55165540      }
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql

    r12468 r12477  
    219219);
    220220CREATE TABLE [statistics].[DimJob] (
    221     [JobId]    UNIQUEIDENTIFIER NOT NULL,
    222     [UserId]   UNIQUEIDENTIFIER NOT NULL,
    223     [JobName]  VARCHAR (MAX)    NOT NULL,
    224     [UserName] VARCHAR (MAX)    NOT NULL,
     221    [JobId]       UNIQUEIDENTIFIER NOT NULL,
     222    [UserId]      UNIQUEIDENTIFIER NOT NULL,
     223    [JobName]     VARCHAR (MAX)    NOT NULL,
     224    [UserName]    VARCHAR (MAX)    NOT NULL,
     225  [DateCreated] DATETIME       NOT NULL,
    225226    CONSTRAINT [PK_DimJob] PRIMARY KEY CLUSTERED ([JobId] ASC)
    226227);
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Settings.Designer.cs

    r11623 r12477  
    22// <auto-generated>
    33//     This code was generated by a tool.
    4 //     Runtime Version:4.0.30319.34014
     4//     Runtime Version:4.0.30319.34209
    55//
    66//     Changes to this file may cause incorrect behavior and will be lost if
     
    2727        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    2828        [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
    29         [global::System.Configuration.DefaultSettingValueAttribute("Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=T" +
    30             "rue;")]
     29        [global::System.Configuration.DefaultSettingValueAttribute("Data Source=.\\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Securit" +
     30            "y=True;")]
    3131        public string HeuristicLab_Hive_LinqConnectionString {
    3232            get {
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Settings.settings

    r6983 r12477  
    66      <DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
    77&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    8   &lt;ConnectionString&gt;Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;&lt;/ConnectionString&gt;
     8  &lt;ConnectionString&gt;Data Source=.\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;&lt;/ConnectionString&gt;
    99  &lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
    1010&lt;/SerializableConnectionString&gt;</DesignTimeValue>
    11       <Value Profile="(Default)">Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;</Value>
     11      <Value Profile="(Default)">Data Source=.\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;</Value>
    1212    </Setting>
    1313    <Setting Name="LongRunningDatabaseCommandTimeout" Type="System.TimeSpan" Scope="Application">
Note: See TracChangeset for help on using the changeset viewer.