Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/23/09 11:01:40 (15 years ago)
Author:
mkommend
Message:

implemented final prototyp of LinqToSql mapping (ticket #712)

File:
1 edited

Legend:

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

    r2178 r2179  
    1313    }
    1414
     15    public Problem(Dataset dataset)
     16      : this() {
     17      this.dataset = dataset;
     18    }
     19
    1520    private int id;
    16     [Column(Storage = "id", DbType = "integer", IsPrimaryKey = true, IsDbGenerated = true)]
     21    [Column(Storage = "id", IsPrimaryKey = true, IsDbGenerated = true)]
    1722    public int Id {
    1823      get { return this.id; }
     
    2126
    2227    private Dataset dataset;
    23     [Column(Storage = "dataset", DbType = "text", CanBeNull = false)]
     28    [Column(Storage = "dataset", DbType = "varbinary(8000)", CanBeNull = false)]
    2429    public Dataset Dataset {
    2530      get { return this.dataset; }
    26       set { this.dataset = value; }
    27     }   
     31      private set { this.dataset = value; }
     32    }
    2833  }
    2934}
Note: See TracChangeset for help on using the changeset viewer.