- Timestamp:
- 08/11/09 15:43:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DatabaseService.cs
r2271 r2275 94 94 using (ModelingDataContext ctx = new ModelingDataContext(connection)) { 95 95 ctx.ModelData.InsertOnSubmit(new ModelData(m, PersistenceManager.SaveToGZip(model.Data))); 96 ctx.SubmitChanges(); 96 97 } 97 98 … … 124 125 foreach (MethodInfo inputVariableResultInfo in inputVariableResultInfos) { 125 126 Result result = GetOrCreateResult(inputVariableResultInfo.Name.Substring(3)); 126 foreach (InputVariable variable in ctx.InputVariables.Where(iv => iv.Model == m odel)) {127 foreach (InputVariable variable in ctx.InputVariables.Where(iv => iv.Model == m)) { 127 128 double value = (double)inputVariableResultInfo.Invoke(model, new object[] { variable.Variable.Name }); 128 129 ctx.InputVariableResults.InsertOnSubmit(new InputVariableResult(variable, result, value));
Note: See TracChangeset
for help on using the changeset viewer.