Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/09 15:15:16 (13 years ago)
Author:
mkommend
Message:

changed modeling database backend to use a shared read connection => notification by exception if another program is connected to the database (ticket #759)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/PredictorPersister.cs

    r2525 r2530  
    3838      db.Connect();
    3939      Dataset temp = db.GetDataset();
    40       if(temp == null)     
    41         db.PersistProblem(ds);     
     40      if (temp == null) {
     41        db.PersistProblem(ds);
     42        db.Commit();
     43      }
    4244
    4345      IAnalyzerModel model = new AnalyzerModel();                 
    4446      DefaultModelAnalyzerOperators.PopulateAnalyzerModel(scope, model, modelType);
    4547      db.Persist(model, algorithm, algorithm);
     48      db.Commit();
    4649      db.Disconnect();
    4750     
Note: See TracChangeset for help on using the changeset viewer.