private void ReleasePM() { if (this.fromPool) { PMFactory.Remove(); } }
private void InitPM() { if (this.fromPool) { this.persistentManager = PMFactory.GetPM(); } }
public void Dispose() { this.dbAccess.CloseConnection(); this.dbAccess = null; PMFactory.Remove(Thread.CurrentThread.ManagedThreadId); }
public PersistentManager() { this.dbAccess = new DbAccess(); this.dbAccess.OpenConnection(); PMFactory.AddPM(this); }