public void Dispose()
 {
     this.dbAccess.CloseConnection();
     this.dbAccess = null;
     PMFactory.Remove(Thread.CurrentThread.ManagedThreadId);
 }
 public PersistentManager(string connectionString)
 {
     this.dbAccess = new DbAccess(connectionString);
     this.dbAccess.OpenConnection();
 }
 public PersistentManager(string databaseType, string connectionString)
 {
     this.dbAccess = new DbAccess(databaseType, connectionString);
     this.dbAccess.OpenConnection();
 }
 public PersistentManager()
 {
     this.dbAccess = new DbAccess();
     this.dbAccess.OpenConnection();
     PMFactory.AddPM(this);
 }
Example #5
0
 public void Dispose()
 {
     this.dbAccess.CloseConnection();
     this.dbAccess = null;
     PMFactory.Remove(Thread.CurrentThread.ManagedThreadId);
 }
Example #6
0
 public PersistentManager(string databaseType, string connectionString)
 {
     this.dbAccess = new DbAccess(databaseType, connectionString);
     this.dbAccess.OpenConnection();
 }
Example #7
0
 public PersistentManager(string connectionString)
 {
     this.dbAccess = new DbAccess(connectionString);
     this.dbAccess.OpenConnection();
 }
Example #8
0
 public PersistentManager()
 {
     this.dbAccess = new DbAccess();
     this.dbAccess.OpenConnection();
     PMFactory.AddPM(this);
 }