- Timestamp:
- 12/23/09 13:41:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DatabaseService.cs
r2534 r2571 91 91 if (!ctx.DatabaseExists() && !this.ReadOnly) 92 92 ctx.CreateDatabase(); 93 else 94 ctx.Connection.Open(); 93 95 } 94 96 … … 96 98 if (ctx == null) 97 99 return; 100 ctx.Connection.Close(); 98 101 ctx.Connection.Dispose(); 99 102 ctx.Dispose(); … … 386 389 ctx.Models.InsertOnSubmit(m); 387 390 ctx.SubmitChanges(); 388 ctx.ModelData.InsertOnSubmit(new ModelData(m, PersistenceManager.SaveToGZip(model.Predictor))); 391 ctx.ModelData.InsertOnSubmit(new ModelData(m, PersistenceManager.SaveToGZip(model.Predictor))); 389 392 390 393 foreach (string variableName in model.Predictor.GetInputVariables()) … … 408 411 } 409 412 } 410 ctx.SubmitChanges();413 ctx.SubmitChanges(); 411 414 } 412 415 }
Note: See TracChangeset
for help on using the changeset viewer.