public void Dispose() { if (db != null) { db.Dispose(); } }
public void Dispose() { PhotoRepository.Dispose(); LikeRepository.Dispose(); ClientProfilesRepository.Dispose(); _context.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
private void Dispose(bool disposing) { if (!isDisposed) { if (disposing) { _context.Dispose(); } } isDisposed = true; }
public void Dispose() { _context?.Dispose(); }