Last change
on this file since 805 was
357,
checked in by gkronber, 16 years ago
|
worked on ticket #187. code is a mess. work-in-progress.
|
File size:
750 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Data.Linq.Mapping;
|
---|
6 | using HeuristicLab.CEDMA.DB.Interfaces;
|
---|
7 |
|
---|
8 | namespace HeuristicLab.CEDMA.DB {
|
---|
9 | [Table(Name = "AgentTable")]
|
---|
10 | class Agent : IAgent {
|
---|
11 | [Column(IsPrimaryKey = true)]
|
---|
12 | public int ID;
|
---|
13 | [Column]
|
---|
14 | public string Name;
|
---|
15 | [Column]
|
---|
16 | public AgentStatus Status;
|
---|
17 | [Column]
|
---|
18 | public byte[] RawData;
|
---|
19 |
|
---|
20 | string IAgent.Name {
|
---|
21 | get { return this.Name; }
|
---|
22 | }
|
---|
23 |
|
---|
24 | AgentStatus IAgent.Status {
|
---|
25 | get { return this.Status; }
|
---|
26 | }
|
---|
27 |
|
---|
28 | byte[] IAgent.RawData {
|
---|
29 | get { return this.RawData; }
|
---|
30 | }
|
---|
31 |
|
---|
32 | public void Save() {
|
---|
33 | throw new NotImplementedException();
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.