public void Dispose() { if (_context != null) { _context.Dispose(); _context = null; } }
public Repository() { _context = new YummyDBEntities(); _context.Configuration.ProxyCreationEnabled = false; }