Esempio n. 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (_disposed)
     {
         return;
     }
     if (disposing)
     {
         //Free any other managed objects here
     }
     Db.Dispose();
     _disposed = true;
 }
 public void Dispose()
 {
     CleanDatabase();
     _db.Dispose();
 }