Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/09 17:51:48 (15 years ago)
Author:
gkronber
Message:

Fixed a few bugs in CEDMA dispatching. #712

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/Problem.cs

    r2194 r2198  
    66
    77using HeuristicLab.DataAnalysis;
     8using HeuristicLab.Core;
    89
    910namespace HeuristicLab.Modeling.Database.SQLServerCompact {
    1011  [Table(Name = "Problem")]
    11   public class Problem {
     12  public class Problem : IProblem {
    1213    public Problem() {
    1314    }
     
    1516    public Problem(Dataset dataset)
    1617      : this() {
    17       this.dataset = dataset;
     18      this.Dataset = dataset;
    1819    }
    1920
     
    2526    }
    2627
    27     private Dataset dataset;
    28     [Column(Storage = "dataset", DbType = "image", CanBeNull = false)]
     28    private byte[] data;
     29    [Column(Storage = "data", DbType = "image", CanBeNull = false)]
     30    public byte[] Data {
     31      get { return this.data; }
     32      private set { this.data = value; }
     33    }
     34
    2935    public Dataset Dataset {
    30       get { return this.dataset; }
    31       private set { this.dataset = value; }
     36      get { return (Dataset)PersistenceManager.RestoreFromGZip(this.Data); }
     37      set { this.Data = PersistenceManager.SaveToGZip(value); }
    3238    }
    3339  }
Note: See TracChangeset for help on using the changeset viewer.