Пример #1
0
 private void Clear(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
     }
     _disposed = true;
 }
Пример #2
0
 public void Dispose()
 {
     DbSet = null;
     Context.Dispose();
     GC.SuppressFinalize(this);
 }