- Timestamp:
- 09/07/09 15:54:15 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DatabaseService.cs
r2333 r2339 42 42 43 43 public void EmptyDatabase() { 44 ctx.Connection.Dispose(); 44 45 ctx.DeleteDatabase(); 46 Connect(); 45 47 ctx.CreateDatabase(); 46 48 } … … 49 51 public void Connect() { 50 52 if (ctx != null) 51 return;53 Disconnect(); 52 54 53 55 ctx = new ModelingDataContext(connection); … … 64 66 if (ctx == null) 65 67 return; 68 ctx.Connection.Dispose(); 66 69 ctx.Dispose(); 67 70 ctx = null;
Note: See TracChangeset
for help on using the changeset viewer.