Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/16 15:04:15 (8 years ago)
Author:
abeham
Message:

#2588:

  • Added table, FK constraints, and FK indexes to database
  • Updated Linq2Sql mapping
  • Added service methods and dtos for downloading
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.OKB.DataAccess/3.3/OKB.designer.cs

    r13501 r13682  
    7373    partial void UpdateCharacteristicValue(CharacteristicValue instance);
    7474    partial void DeleteCharacteristicValue(CharacteristicValue instance);
     75    partial void InsertSingleObjectiveSolution(SingleObjectiveSolution instance);
     76    partial void UpdateSingleObjectiveSolution(SingleObjectiveSolution instance);
     77    partial void DeleteSingleObjectiveSolution(SingleObjectiveSolution instance);
    7578    #endregion
    7679   
     
    214217      {
    215218        return this.GetTable<CharacteristicValue>();
     219      }
     220    }
     221   
     222    public System.Data.Linq.Table<SingleObjectiveSolution> SingleObjectiveSolutions
     223    {
     224      get
     225      {
     226        return this.GetTable<SingleObjectiveSolution>();
    216227      }
    217228    }
     
    934945    private EntitySet<CharacteristicValue> _CharacteristicValues;
    935946   
     947    private EntitySet<SingleObjectiveSolution> _SingleObjectiveSolutions;
     948   
    936949    #region Extensibility Method Definitions
    937950    partial void OnLoaded();
     
    952965      this._Values = new EntitySet<Value>(new Action<Value>(this.attach_Values), new Action<Value>(this.detach_Values));
    953966      this._CharacteristicValues = new EntitySet<CharacteristicValue>(new Action<CharacteristicValue>(this.attach_CharacteristicValues), new Action<CharacteristicValue>(this.detach_CharacteristicValues));
     967      this._SingleObjectiveSolutions = new EntitySet<SingleObjectiveSolution>(new Action<SingleObjectiveSolution>(this.attach_SingleObjectiveSolutions), new Action<SingleObjectiveSolution>(this.detach_SingleObjectiveSolutions));
    954968      OnCreated();
    955969    }
     
    10671081    }
    10681082   
     1083    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DataType_SingleObjectiveSolution", Storage="_SingleObjectiveSolutions", ThisKey="Id", OtherKey="DataTypeId")]
     1084    public EntitySet<SingleObjectiveSolution> SingleObjectiveSolutions
     1085    {
     1086      get
     1087      {
     1088        return this._SingleObjectiveSolutions;
     1089      }
     1090      set
     1091      {
     1092        this._SingleObjectiveSolutions.Assign(value);
     1093      }
     1094    }
     1095   
    10691096    public event PropertyChangingEventHandler PropertyChanging;
    10701097   
     
    11301157   
    11311158    private void detach_CharacteristicValues(CharacteristicValue entity)
     1159    {
     1160      this.SendPropertyChanging();
     1161      entity.DataType = null;
     1162    }
     1163   
     1164    private void attach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
     1165    {
     1166      this.SendPropertyChanging();
     1167      entity.DataType = this;
     1168    }
     1169   
     1170    private void detach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
    11321171    {
    11331172      this.SendPropertyChanging();
     
    17501789    private EntitySet<CharacteristicValue> _CharacteristicValues;
    17511790   
     1791    private EntitySet<SingleObjectiveSolution> _SingleObjectiveSolutions;
     1792   
    17521793    private EntityRef<DataType> _DataType;
    17531794   
     
    17831824      this._Runs = new EntitySet<Run>(new Action<Run>(this.attach_Runs), new Action<Run>(this.detach_Runs));
    17841825      this._CharacteristicValues = new EntitySet<CharacteristicValue>(new Action<CharacteristicValue>(this.attach_CharacteristicValues), new Action<CharacteristicValue>(this.detach_CharacteristicValues));
     1826      this._SingleObjectiveSolutions = new EntitySet<SingleObjectiveSolution>(new Action<SingleObjectiveSolution>(this.attach_SingleObjectiveSolutions), new Action<SingleObjectiveSolution>(this.detach_SingleObjectiveSolutions));
    17851827      this._DataType = default(EntityRef<DataType>);
    17861828      this._Platform = default(EntityRef<Platform>);
     
    19852027    }
    19862028   
     2029    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Problem_SingleObjectiveSolution", Storage="_SingleObjectiveSolutions", ThisKey="Id", OtherKey="ProblemId")]
     2030    public EntitySet<SingleObjectiveSolution> SingleObjectiveSolutions
     2031    {
     2032      get
     2033      {
     2034        return this._SingleObjectiveSolutions;
     2035      }
     2036      set
     2037      {
     2038        this._SingleObjectiveSolutions.Assign(value);
     2039      }
     2040    }
     2041   
    19872042    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DataType_Problem", Storage="_DataType", ThisKey="DataTypeId", OtherKey="Id", IsForeignKey=true)]
    19882043    public DataType DataType
     
    21722227   
    21732228    private void detach_CharacteristicValues(CharacteristicValue entity)
     2229    {
     2230      this.SendPropertyChanging();
     2231      entity.Problem = null;
     2232    }
     2233   
     2234    private void attach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
     2235    {
     2236      this.SendPropertyChanging();
     2237      entity.Problem = this;
     2238    }
     2239   
     2240    private void detach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
    21742241    {
    21752242      this.SendPropertyChanging();
     
    21952262   
    21962263    private EntitySet<Value> _Values;
     2264   
     2265    private EntitySet<SingleObjectiveSolution> _SingleObjectiveSolutions;
    21972266   
    21982267    #region Extensibility Method Definitions
     
    22132282      this._Problems = new EntitySet<Problem>(new Action<Problem>(this.attach_Problems), new Action<Problem>(this.detach_Problems));
    22142283      this._Values = new EntitySet<Value>(new Action<Value>(this.attach_Values), new Action<Value>(this.detach_Values));
     2284      this._SingleObjectiveSolutions = new EntitySet<SingleObjectiveSolution>(new Action<SingleObjectiveSolution>(this.attach_SingleObjectiveSolutions), new Action<SingleObjectiveSolution>(this.detach_SingleObjectiveSolutions));
    22152285      OnCreated();
    22162286    }
     
    23152385    }
    23162386   
     2387    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="BinaryData_SingleObjectiveSolution", Storage="_SingleObjectiveSolutions", ThisKey="Id", OtherKey="BinaryDataId")]
     2388    public EntitySet<SingleObjectiveSolution> SingleObjectiveSolutions
     2389    {
     2390      get
     2391      {
     2392        return this._SingleObjectiveSolutions;
     2393      }
     2394      set
     2395      {
     2396        this._SingleObjectiveSolutions.Assign(value);
     2397      }
     2398    }
     2399   
    23172400    public event PropertyChangingEventHandler PropertyChanging;
    23182401   
     
    23662449   
    23672450    private void detach_Values(Value entity)
     2451    {
     2452      this.SendPropertyChanging();
     2453      entity.BinaryData = null;
     2454    }
     2455   
     2456    private void attach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
     2457    {
     2458      this.SendPropertyChanging();
     2459      entity.BinaryData = this;
     2460    }
     2461   
     2462    private void detach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
    23682463    {
    23692464      this.SendPropertyChanging();
     
    23912486   
    23922487    private EntitySet<Value> _Values;
     2488   
     2489    private EntitySet<SingleObjectiveSolution> _SingleObjectiveSolutions;
    23932490   
    23942491    private EntityRef<Algorithm> _Algorithm;
     
    24172514    {
    24182515      this._Values = new EntitySet<Value>(new Action<Value>(this.attach_Values), new Action<Value>(this.detach_Values));
     2516      this._SingleObjectiveSolutions = new EntitySet<SingleObjectiveSolution>(new Action<SingleObjectiveSolution>(this.attach_SingleObjectiveSolutions), new Action<SingleObjectiveSolution>(this.detach_SingleObjectiveSolutions));
    24192517      this._Algorithm = default(EntityRef<Algorithm>);
    24202518      this._Problem = default(EntityRef<Problem>);
     
    25632661    }
    25642662   
     2663    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Run_SingleObjectiveSolution", Storage="_SingleObjectiveSolutions", ThisKey="Id", OtherKey="RunId")]
     2664    public EntitySet<SingleObjectiveSolution> SingleObjectiveSolutions
     2665    {
     2666      get
     2667      {
     2668        return this._SingleObjectiveSolutions;
     2669      }
     2670      set
     2671      {
     2672        this._SingleObjectiveSolutions.Assign(value);
     2673      }
     2674    }
     2675   
    25652676    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Algorithm_Run", Storage="_Algorithm", ThisKey="AlgorithmId", OtherKey="Id", IsForeignKey=true)]
    25662677    public Algorithm Algorithm
     
    26582769   
    26592770    private void detach_Values(Value entity)
     2771    {
     2772      this.SendPropertyChanging();
     2773      entity.Run = null;
     2774    }
     2775   
     2776    private void attach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
     2777    {
     2778      this.SendPropertyChanging();
     2779      entity.Run = this;
     2780    }
     2781   
     2782    private void detach_SingleObjectiveSolutions(SingleObjectiveSolution entity)
    26602783    {
    26612784      this.SendPropertyChanging();
     
    36683791    }
    36693792  }
     3793 
     3794  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SingleObjectiveSolution")]
     3795  public partial class SingleObjectiveSolution : INotifyPropertyChanging, INotifyPropertyChanged
     3796  {
     3797   
     3798    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
     3799   
     3800    private long _Id;
     3801   
     3802    private System.Nullable<long> _ProblemId;
     3803   
     3804    private System.Nullable<long> _BinaryDataId;
     3805   
     3806    private System.Nullable<long> _RunId;
     3807   
     3808    private double _Quality;
     3809   
     3810    private System.Nullable<long> _DataTypeId;
     3811   
     3812    private EntityRef<Problem> _Problem;
     3813   
     3814    private EntityRef<BinaryData> _BinaryData;
     3815   
     3816    private EntityRef<Run> _Run;
     3817   
     3818    private EntityRef<DataType> _DataType;
     3819   
     3820    #region Extensibility Method Definitions
     3821    partial void OnLoaded();
     3822    partial void OnValidate(System.Data.Linq.ChangeAction action);
     3823    partial void OnCreated();
     3824    partial void OnIdChanging(long value);
     3825    partial void OnIdChanged();
     3826    partial void OnProblemIdChanging(System.Nullable<long> value);
     3827    partial void OnProblemIdChanged();
     3828    partial void OnBinaryDataIdChanging(System.Nullable<long> value);
     3829    partial void OnBinaryDataIdChanged();
     3830    partial void OnRunIdChanging(System.Nullable<long> value);
     3831    partial void OnRunIdChanged();
     3832    partial void OnQualityChanging(double value);
     3833    partial void OnQualityChanged();
     3834    partial void OnDataTypeIdChanging(System.Nullable<long> value);
     3835    partial void OnDataTypeIdChanged();
     3836    #endregion
     3837   
     3838    public SingleObjectiveSolution()
     3839    {
     3840      this._Problem = default(EntityRef<Problem>);
     3841      this._BinaryData = default(EntityRef<BinaryData>);
     3842      this._Run = default(EntityRef<Run>);
     3843      this._DataType = default(EntityRef<DataType>);
     3844      OnCreated();
     3845    }
     3846   
     3847    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
     3848    public long Id
     3849    {
     3850      get
     3851      {
     3852        return this._Id;
     3853      }
     3854      set
     3855      {
     3856        if ((this._Id != value))
     3857        {
     3858          this.OnIdChanging(value);
     3859          this.SendPropertyChanging();
     3860          this._Id = value;
     3861          this.SendPropertyChanged("Id");
     3862          this.OnIdChanged();
     3863        }
     3864      }
     3865    }
     3866   
     3867    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemId", DbType="BigInt")]
     3868    public System.Nullable<long> ProblemId
     3869    {
     3870      get
     3871      {
     3872        return this._ProblemId;
     3873      }
     3874      set
     3875      {
     3876        if ((this._ProblemId != value))
     3877        {
     3878          if (this._Problem.HasLoadedOrAssignedValue)
     3879          {
     3880            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
     3881          }
     3882          this.OnProblemIdChanging(value);
     3883          this.SendPropertyChanging();
     3884          this._ProblemId = value;
     3885          this.SendPropertyChanged("ProblemId");
     3886          this.OnProblemIdChanged();
     3887        }
     3888      }
     3889    }
     3890   
     3891    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BinaryDataId", DbType="BigInt")]
     3892    public System.Nullable<long> BinaryDataId
     3893    {
     3894      get
     3895      {
     3896        return this._BinaryDataId;
     3897      }
     3898      set
     3899      {
     3900        if ((this._BinaryDataId != value))
     3901        {
     3902          if (this._BinaryData.HasLoadedOrAssignedValue)
     3903          {
     3904            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
     3905          }
     3906          this.OnBinaryDataIdChanging(value);
     3907          this.SendPropertyChanging();
     3908          this._BinaryDataId = value;
     3909          this.SendPropertyChanged("BinaryDataId");
     3910          this.OnBinaryDataIdChanged();
     3911        }
     3912      }
     3913    }
     3914   
     3915    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RunId", DbType="BigInt")]
     3916    public System.Nullable<long> RunId
     3917    {
     3918      get
     3919      {
     3920        return this._RunId;
     3921      }
     3922      set
     3923      {
     3924        if ((this._RunId != value))
     3925        {
     3926          if (this._Run.HasLoadedOrAssignedValue)
     3927          {
     3928            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
     3929          }
     3930          this.OnRunIdChanging(value);
     3931          this.SendPropertyChanging();
     3932          this._RunId = value;
     3933          this.SendPropertyChanged("RunId");
     3934          this.OnRunIdChanged();
     3935        }
     3936      }
     3937    }
     3938   
     3939    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quality", DbType="Float")]
     3940    public double Quality
     3941    {
     3942      get
     3943      {
     3944        return this._Quality;
     3945      }
     3946      set
     3947      {
     3948        if ((this._Quality != value))
     3949        {
     3950          this.OnQualityChanging(value);
     3951          this.SendPropertyChanging();
     3952          this._Quality = value;
     3953          this.SendPropertyChanged("Quality");
     3954          this.OnQualityChanged();
     3955        }
     3956      }
     3957    }
     3958   
     3959    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataTypeId", DbType="BigInt")]
     3960    public System.Nullable<long> DataTypeId
     3961    {
     3962      get
     3963      {
     3964        return this._DataTypeId;
     3965      }
     3966      set
     3967      {
     3968        if ((this._DataTypeId != value))
     3969        {
     3970          if (this._DataType.HasLoadedOrAssignedValue)
     3971          {
     3972            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
     3973          }
     3974          this.OnDataTypeIdChanging(value);
     3975          this.SendPropertyChanging();
     3976          this._DataTypeId = value;
     3977          this.SendPropertyChanged("DataTypeId");
     3978          this.OnDataTypeIdChanged();
     3979        }
     3980      }
     3981    }
     3982   
     3983    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Problem_SingleObjectiveSolution", Storage="_Problem", ThisKey="ProblemId", OtherKey="Id", IsForeignKey=true)]
     3984    public Problem Problem
     3985    {
     3986      get
     3987      {
     3988        return this._Problem.Entity;
     3989      }
     3990      set
     3991      {
     3992        Problem previousValue = this._Problem.Entity;
     3993        if (((previousValue != value)
     3994              || (this._Problem.HasLoadedOrAssignedValue == false)))
     3995        {
     3996          this.SendPropertyChanging();
     3997          if ((previousValue != null))
     3998          {
     3999            this._Problem.Entity = null;
     4000            previousValue.SingleObjectiveSolutions.Remove(this);
     4001          }
     4002          this._Problem.Entity = value;
     4003          if ((value != null))
     4004          {
     4005            value.SingleObjectiveSolutions.Add(this);
     4006            this._ProblemId = value.Id;
     4007          }
     4008          else
     4009          {
     4010            this._ProblemId = default(Nullable<long>);
     4011          }
     4012          this.SendPropertyChanged("Problem");
     4013        }
     4014      }
     4015    }
     4016   
     4017    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="BinaryData_SingleObjectiveSolution", Storage="_BinaryData", ThisKey="BinaryDataId", OtherKey="Id", IsForeignKey=true)]
     4018    public BinaryData BinaryData
     4019    {
     4020      get
     4021      {
     4022        return this._BinaryData.Entity;
     4023      }
     4024      set
     4025      {
     4026        BinaryData previousValue = this._BinaryData.Entity;
     4027        if (((previousValue != value)
     4028              || (this._BinaryData.HasLoadedOrAssignedValue == false)))
     4029        {
     4030          this.SendPropertyChanging();
     4031          if ((previousValue != null))
     4032          {
     4033            this._BinaryData.Entity = null;
     4034            previousValue.SingleObjectiveSolutions.Remove(this);
     4035          }
     4036          this._BinaryData.Entity = value;
     4037          if ((value != null))
     4038          {
     4039            value.SingleObjectiveSolutions.Add(this);
     4040            this._BinaryDataId = value.Id;
     4041          }
     4042          else
     4043          {
     4044            this._BinaryDataId = default(Nullable<long>);
     4045          }
     4046          this.SendPropertyChanged("BinaryData");
     4047        }
     4048      }
     4049    }
     4050   
     4051    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Run_SingleObjectiveSolution", Storage="_Run", ThisKey="RunId", OtherKey="Id", IsForeignKey=true)]
     4052    public Run Run
     4053    {
     4054      get
     4055      {
     4056        return this._Run.Entity;
     4057      }
     4058      set
     4059      {
     4060        Run previousValue = this._Run.Entity;
     4061        if (((previousValue != value)
     4062              || (this._Run.HasLoadedOrAssignedValue == false)))
     4063        {
     4064          this.SendPropertyChanging();
     4065          if ((previousValue != null))
     4066          {
     4067            this._Run.Entity = null;
     4068            previousValue.SingleObjectiveSolutions.Remove(this);
     4069          }
     4070          this._Run.Entity = value;
     4071          if ((value != null))
     4072          {
     4073            value.SingleObjectiveSolutions.Add(this);
     4074            this._RunId = value.Id;
     4075          }
     4076          else
     4077          {
     4078            this._RunId = default(Nullable<long>);
     4079          }
     4080          this.SendPropertyChanged("Run");
     4081        }
     4082      }
     4083    }
     4084   
     4085    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DataType_SingleObjectiveSolution", Storage="_DataType", ThisKey="DataTypeId", OtherKey="Id", IsForeignKey=true)]
     4086    public DataType DataType
     4087    {
     4088      get
     4089      {
     4090        return this._DataType.Entity;
     4091      }
     4092      set
     4093      {
     4094        DataType previousValue = this._DataType.Entity;
     4095        if (((previousValue != value)
     4096              || (this._DataType.HasLoadedOrAssignedValue == false)))
     4097        {
     4098          this.SendPropertyChanging();
     4099          if ((previousValue != null))
     4100          {
     4101            this._DataType.Entity = null;
     4102            previousValue.SingleObjectiveSolutions.Remove(this);
     4103          }
     4104          this._DataType.Entity = value;
     4105          if ((value != null))
     4106          {
     4107            value.SingleObjectiveSolutions.Add(this);
     4108            this._DataTypeId = value.Id;
     4109          }
     4110          else
     4111          {
     4112            this._DataTypeId = default(Nullable<long>);
     4113          }
     4114          this.SendPropertyChanged("DataType");
     4115        }
     4116      }
     4117    }
     4118   
     4119    public event PropertyChangingEventHandler PropertyChanging;
     4120   
     4121    public event PropertyChangedEventHandler PropertyChanged;
     4122   
     4123    protected virtual void SendPropertyChanging()
     4124    {
     4125      if ((this.PropertyChanging != null))
     4126      {
     4127        this.PropertyChanging(this, emptyChangingEventArgs);
     4128      }
     4129    }
     4130   
     4131    protected virtual void SendPropertyChanged(String propertyName)
     4132    {
     4133      if ((this.PropertyChanged != null))
     4134      {
     4135        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
     4136      }
     4137    }
     4138  }
    36704139}
    36714140#pragma warning restore 1591
Note: See TracChangeset for help on using the changeset viewer.