Changeset 2179 for branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.SQLiteBackend/3.2/ModelingDataContext.cs
- Timestamp:
- 07/23/09 11:01:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.SQLiteBackend/3.2/ModelingDataContext.cs
r2178 r2179 3 3 using System.Data.Linq; 4 4 using System.Data.Linq.Mapping; 5 using System.Data.Sql; 5 6 using System.Text; 6 7 … … 8 9 public class ModelingDataContext : DataContext{ 9 10 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 public static string connectionString; 11 12 12 public ModelingDataContext() : this(connectionString) { 13 public ModelingDataContext() : this(connectionString) { 13 14 } 14 15 … … 22 23 } 23 24 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>(); } 25 public Table<Variable> Variables { 26 get { return GetTable<Variable>(); } 37 27 } 38 28 … … 44 34 get { return GetTable<Result>(); } 45 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 } 46 53 #endregion 47 54 }
Note: See TracChangeset
for help on using the changeset viewer.