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);
 }
示例#5
0
 public void Dispose()
 {
     this.dbAccess.CloseConnection();
     this.dbAccess = null;
     PMFactory.Remove(Thread.CurrentThread.ManagedThreadId);
 }
示例#6
0
 public PersistentManager(string databaseType, string connectionString)
 {
     this.dbAccess = new DbAccess(databaseType, connectionString);
     this.dbAccess.OpenConnection();
 }
示例#7
0
 public PersistentManager(string connectionString)
 {
     this.dbAccess = new DbAccess(connectionString);
     this.dbAccess.OpenConnection();
 }
示例#8
0
 public PersistentManager()
 {
     this.dbAccess = new DbAccess();
     this.dbAccess.OpenConnection();
     PMFactory.AddPM(this);
 }