Last change
on this file since 2223 was
2223,
checked in by mkommend, 15 years ago
|
reintegrated branch new heuristic.modeling database backend (ticket #712)
|
File size:
781 bytes
|
Rev | Line | |
---|
[2180] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Data.Linq;
|
---|
| 5 | using System.Data.Linq.Mapping;
|
---|
| 6 | using System.Text;
|
---|
| 7 |
|
---|
[2194] | 8 | namespace HeuristicLab.Modeling.Database.SQLServerCompact {
|
---|
[2180] | 9 | [Table(Name = "Result")]
|
---|
[2190] | 10 | public class Result : IResult {
|
---|
[2180] | 11 | public Result() {
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | public Result(string name)
|
---|
| 15 | : this() {
|
---|
| 16 | this.name = name;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | private int id;
|
---|
| 20 | [Column(Storage = "id", IsPrimaryKey = true, IsDbGenerated = true)]
|
---|
| 21 | public int Id {
|
---|
| 22 | get { return this.id; }
|
---|
| 23 | private set { this.id = value; }
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | private string name;
|
---|
| 27 | [Column(Storage = "name", CanBeNull = false)]
|
---|
| 28 | public string Name {
|
---|
| 29 | get { return this.name; }
|
---|
| 30 | private set { this.name = value; }
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
| 33 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.