Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.SQLiteBackend/3.2/Problem.cs @ 2178

Last change on this file since 2178 was 2178, checked in by mkommend, 15 years ago

added first implementation of LinqToSql mapping (ticket #712)

File size: 744 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Data.Linq;
4using System.Data.Linq.Mapping;
5using System.Text;
6
7using HeuristicLab.DataAnalysis;
8
9namespace HeuristicLab.Modeling.SQLiteBackend {
10  [Table(Name = "Problem")]
11  public class Problem {
12    public Problem() {
13    }
14
15    private int id;
16    [Column(Storage = "id", DbType = "integer", IsPrimaryKey = true, IsDbGenerated = true)]
17    public int Id {
18      get { return this.id; }
19      private set { this.id = value; }
20    }
21
22    private Dataset dataset;
23    [Column(Storage = "dataset", DbType = "text", CanBeNull = false)]
24    public Dataset Dataset {
25      get { return this.dataset; }
26      set { this.dataset = value; }
27    }   
28  }
29}
Note: See TracBrowser for help on using the repository browser.