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
|
Rev | Line | |
---|
[2178] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Data.Linq;
|
---|
| 4 | using System.Data.Linq.Mapping;
|
---|
[2179] | 5 | using System.Data.Sql;
|
---|
[2178] | 6 | using System.Text;
|
---|
| 7 |
|
---|
| 8 | namespace HeuristicLab.Modeling.SQLiteBackend {
|
---|
| 9 | public class ModelingDataContext : DataContext{
|
---|
| 10 |
|
---|
[2179] | 11 | public static string connectionString;
|
---|
[2178] | 12 |
|
---|
[2179] | 13 | public ModelingDataContext() : this(connectionString) {
|
---|
[2178] | 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 |
|
---|
[2179] | 25 | public Table<Variable> Variables {
|
---|
| 26 | get { return GetTable<Variable>(); }
|
---|
[2178] | 27 | }
|
---|
| 28 |
|
---|
[2179] | 29 | public Table<Problem> Problems {
|
---|
| 30 | get { return GetTable<Problem>(); }
|
---|
[2178] | 31 | }
|
---|
[2179] | 32 |
|
---|
| 33 | public Table<Result> Results {
|
---|
| 34 | get { return GetTable<Result>(); }
|
---|
| 35 | }
|
---|
| 36 |
|
---|
[2178] | 37 | public Table<Model> Models {
|
---|
| 38 | get { return GetTable<Model>(); }
|
---|
| 39 | }
|
---|
| 40 |
|
---|
[2179] | 41 |
|
---|
| 42 | public Table<InputVariableResult> InputVariableResults {
|
---|
| 43 | get { return GetTable<InputVariableResult>(); }
|
---|
| 44 | }
|
---|
| 45 |
|
---|
[2178] | 46 | public Table<ModelResult> ModelResults {
|
---|
| 47 | get { return GetTable<ModelResult>(); }
|
---|
| 48 | }
|
---|
| 49 |
|
---|
[2179] | 50 | public Table<InputVariable> InputVariables {
|
---|
| 51 | get { return GetTable<InputVariable>(); }
|
---|
[2178] | 52 | }
|
---|
| 53 | #endregion
|
---|
| 54 | }
|
---|
| 55 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.