Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             _db.Dispose();
         }
     }
     disposed = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     _context.Dispose();
     _isDisposed = true;
 }