Last change
on this file since 2194 was
2194,
checked in by mkommend, 15 years ago
|
adapted HeuristicLab.Modeling.Database and Database.SQLServerCompact (ticket #712)
|
File size:
1.1 KB
|
Line | |
---|
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 |
|
---|
8 | namespace HeuristicLab.Modeling.Database.SQLServerCompact {
|
---|
9 | [Table(Name = "Algorithm")]
|
---|
10 | public class Algorithm : IAlgorithm {
|
---|
11 | public Algorithm() {
|
---|
12 | }
|
---|
13 |
|
---|
14 | public Algorithm(string name)
|
---|
15 | : this() {
|
---|
16 | this.name = name;
|
---|
17 | }
|
---|
18 |
|
---|
19 | public Algorithm(string name, string description)
|
---|
20 | : this(name) {
|
---|
21 | this.description = description;
|
---|
22 | }
|
---|
23 |
|
---|
24 | private int id;
|
---|
25 | [Column(Storage = "id", IsPrimaryKey = true, IsDbGenerated = true)]
|
---|
26 | public int Id {
|
---|
27 | get { return this.id; }
|
---|
28 | private set { this.id = value; }
|
---|
29 | }
|
---|
30 |
|
---|
31 | private string name;
|
---|
32 | [Column(Storage = "name", CanBeNull = false)]
|
---|
33 | public string Name {
|
---|
34 | get { return this.name; }
|
---|
35 | set { this.name = value; }
|
---|
36 | }
|
---|
37 |
|
---|
38 | private string description;
|
---|
39 | [Column(Storage = "description", CanBeNull = true)]
|
---|
40 | public string Description {
|
---|
41 | get { return this.description; }
|
---|
42 | set { this.description = value; }
|
---|
43 | }
|
---|
44 | }
|
---|
45 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.