Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && _context != null)
     {
         _context.Dispose();
         _context = null;
     }
 }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     _context?.Dispose();
 }