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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Data.Linq;
|
---|
4 | using System.Data.Linq.Mapping;
|
---|
5 | using System.Text;
|
---|
6 |
|
---|
7 | using HeuristicLab.DataAnalysis;
|
---|
8 |
|
---|
9 | namespace 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.