Last change
on this file since 2179 was
2179,
checked in by mkommend, 15 years ago
|
implemented final prototyp of LinqToSql mapping (ticket #712)
|
File size:
1.3 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Data.Linq;
|
---|
4 | using System.Data.Linq.Mapping;
|
---|
5 | using System.Data.Sql;
|
---|
6 | using System.Text;
|
---|
7 |
|
---|
8 | namespace HeuristicLab.Modeling.SQLiteBackend {
|
---|
9 | public class ModelingDataContext : DataContext{
|
---|
10 |
|
---|
11 | public static string connectionString;
|
---|
12 |
|
---|
13 | public ModelingDataContext() : this(connectionString) {
|
---|
14 | }
|
---|
15 |
|
---|
16 | public ModelingDataContext(string connection)
|
---|
17 | : base(connection) {
|
---|
18 | }
|
---|
19 |
|
---|
20 | #region Tables
|
---|
21 | public Table<Algorithm> Algorithms {
|
---|
22 | get { return GetTable<Algorithm>(); }
|
---|
23 | }
|
---|
24 |
|
---|
25 | public Table<Variable> Variables {
|
---|
26 | get { return GetTable<Variable>(); }
|
---|
27 | }
|
---|
28 |
|
---|
29 | public Table<Problem> Problems {
|
---|
30 | get { return GetTable<Problem>(); }
|
---|
31 | }
|
---|
32 |
|
---|
33 | public Table<Result> Results {
|
---|
34 | get { return GetTable<Result>(); }
|
---|
35 | }
|
---|
36 |
|
---|
37 | public Table<Model> Models {
|
---|
38 | get { return GetTable<Model>(); }
|
---|
39 | }
|
---|
40 |
|
---|
41 |
|
---|
42 | public Table<InputVariableResult> InputVariableResults {
|
---|
43 | get { return GetTable<InputVariableResult>(); }
|
---|
44 | }
|
---|
45 |
|
---|
46 | public Table<ModelResult> ModelResults {
|
---|
47 | get { return GetTable<ModelResult>(); }
|
---|
48 | }
|
---|
49 |
|
---|
50 | public Table<InputVariable> InputVariables {
|
---|
51 | get { return GetTable<InputVariable>(); }
|
---|
52 | }
|
---|
53 | #endregion
|
---|
54 | }
|
---|
55 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.