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); }