Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/23/09 11:01:40 (15 years ago)
Author:
mkommend
Message:

implemented final prototyp of LinqToSql mapping (ticket #712)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.SQLiteBackend/3.2/ModelingDataContext.cs

    r2178 r2179  
    33using System.Data.Linq;
    44using System.Data.Linq.Mapping;
     5using System.Data.Sql;
    56using System.Text;
    67
     
    89  public class ModelingDataContext : DataContext{
    910
    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;
    1112
    12     public ModelingDataContext() : this(connectionString) {
     13    public ModelingDataContext() : this(connectionString) {     
    1314    }
    1415
     
    2223    }
    2324
    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>(); }
    3727    }
    3828
     
    4434      get { return GetTable<Result>(); }
    4535    }
     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    }
    4653    #endregion
    4754  }
Note: See TracChangeset for help on using the changeset viewer.