public void Dispose() { if (_context != null) { _context.Dispose(); _context = null; } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public void Dispose() { _context.Dispose(); }