Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/ModelingDataContext.cs @ 2355

Last change on this file since 2355 was 2355, checked in by mkommend, 15 years ago

stored model metadata into modeling.database
changed analyzermodel to use dictionary of string, object (ticket #731)

File size: 2.3 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.Data.Linq;
25using System.Data.Linq.Mapping;
26using System.Data.Sql;
27using System.Text;
28
29namespace HeuristicLab.Modeling.Database.SQLServerCompact {
30  public class ModelingDataContext : DataContext{
31    public ModelingDataContext(string connection)
32      : base(connection) {
33    }
34
35    #region Tables
36    public Table<Algorithm> Algorithms {
37      get { return GetTable<Algorithm>(); }
38    }
39
40    public Table<Variable> Variables {
41      get { return GetTable<Variable>(); }
42    }
43
44    public Table<Problem> Problems {
45      get { return GetTable<Problem>(); }
46    }
47
48    public Table<Result> Results {
49      get { return GetTable<Result>(); }
50    }
51
52    public Table<Model> Models {
53      get { return GetTable<Model>(); }
54    }
55
56    public Table<ModelData> ModelData {
57      get { return GetTable<ModelData>(); }
58    }
59
60    public Table<InputVariableResult> InputVariableResults {
61      get { return GetTable<InputVariableResult>(); }
62    }
63
64    public Table<ModelResult> ModelResults {
65      get { return GetTable<ModelResult>(); }
66    }
67
68    public Table<ModelMetaData> ModelMetaData {
69      get { return GetTable<ModelMetaData>(); }
70    }
71
72    public Table<MetaData> MetaData {
73      get { return GetTable<MetaData>(); }
74    }
75
76    public Table<InputVariable> InputVariables {
77      get { return GetTable<InputVariable>(); }
78    }
79    #endregion
80  }
81}
Note: See TracBrowser for help on using the repository browser.