Exemplo n.º 1
0
 private void ReleasePM()
 {
     if (this.fromPool)
     {
         PMFactory.Remove();
     }
 }
Exemplo n.º 2
0
 private void InitPM()
 {
     if (this.fromPool)
     {
         this.persistentManager = PMFactory.GetPM();
     }
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     this.dbAccess.CloseConnection();
     this.dbAccess = null;
     PMFactory.Remove(Thread.CurrentThread.ManagedThreadId);
 }
Exemplo n.º 4
0
 public PersistentManager()
 {
     this.dbAccess = new DbAccess();
     this.dbAccess.OpenConnection();
     PMFactory.AddPM(this);
 }