示例#1
0
 private void ReleasePM()
 {
     if (this.fromPool)
     {
         PMFactory.Remove();
     }
 }
示例#2
0
 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);
 }