Last change
on this file since 2178 was
2178,
checked in by mkommend, 15 years ago
|
added first implementation 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.Text;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Modeling.SQLiteBackend {
|
---|
8 | public class ModelingDataContext : DataContext{
|
---|
9 |
|
---|
10 | public static string connectionString = @"data source=D:\Reps\HL3-Source\branches\HeuristicLab.Modeling Database Backend\sources\HeuristicLab.Modeling.SQLiteBackend\3.2\HeuristicLab.Modeling.SQLiteBackend.database";
|
---|
11 |
|
---|
12 | public ModelingDataContext() : this(connectionString) {
|
---|
13 | }
|
---|
14 |
|
---|
15 | public ModelingDataContext(string connection)
|
---|
16 | : base(connection) {
|
---|
17 | }
|
---|
18 |
|
---|
19 | #region Tables
|
---|
20 | public Table<Algorithm> Algorithms {
|
---|
21 | get { return GetTable<Algorithm>(); }
|
---|
22 | }
|
---|
23 |
|
---|
24 | public Table<InputVariable> InputVariables {
|
---|
25 | get { return GetTable<InputVariable>(); }
|
---|
26 | }
|
---|
27 |
|
---|
28 | public Table<InputVariableResult> InputVariableResults {
|
---|
29 | get { return GetTable<InputVariableResult>(); }
|
---|
30 | }
|
---|
31 | public Table<Model> Models {
|
---|
32 | get { return GetTable<Model>(); }
|
---|
33 | }
|
---|
34 |
|
---|
35 | public Table<ModelResult> ModelResults {
|
---|
36 | get { return GetTable<ModelResult>(); }
|
---|
37 | }
|
---|
38 |
|
---|
39 | public Table<Problem> Problems {
|
---|
40 | get { return GetTable<Problem>(); }
|
---|
41 | }
|
---|
42 |
|
---|
43 | public Table<Result> Results {
|
---|
44 | get { return GetTable<Result>(); }
|
---|
45 | }
|
---|
46 | #endregion
|
---|
47 | }
|
---|
48 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.