Пример #1
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             db.Dispose();
         }
         this.disposed = true;
     }
 }
Пример #2
0
 public virtual void Dispose(bool disposing)
 {
     if (!this._disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
         this._disposed = true;
     }
 }
Пример #3
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             db.Dispose();
             userManager.Dispose();
             roleManager.Dispose();
             clientManager.Dispose();
         }
         this.disposed = true;
     }
 }