Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             if (db != null)
             {
                 db.Dispose();
             }
         }
         db        = null;
         _disposed = true;
     }
 }
Пример #2
0
 public PartnersManager()
 {
     db        = new PartnersRepository();
     _disposed = false;
 }