Changeset 2198 for branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects
- Timestamp:
- 07/28/09 17:51:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/Problem.cs
r2194 r2198 6 6 7 7 using HeuristicLab.DataAnalysis; 8 using HeuristicLab.Core; 8 9 9 10 namespace HeuristicLab.Modeling.Database.SQLServerCompact { 10 11 [Table(Name = "Problem")] 11 public class Problem {12 public class Problem : IProblem { 12 13 public Problem() { 13 14 } … … 15 16 public Problem(Dataset dataset) 16 17 : this() { 17 this. dataset = dataset;18 this.Dataset = dataset; 18 19 } 19 20 … … 25 26 } 26 27 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 29 35 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); } 32 38 } 33 39 }
Note: See TracChangeset
for help on using the changeset viewer.