title: How to remove the data fetch in this Entity Framework Update?
body: <p>Can I restructure this query so I don't have to fetch from the database? I have tried various techniques, but none of them work.</p>
  
  <pre><code>    public void Update(CartEntryViewModel entry)
          using (var context = new MyContext())
          {
              User user = Auth.GetUser(context);
              CartEntry model = context.CartEntries.Find(entry.Id);
  
              // Change the item and update quantity
              model.Item = context.Items.Find(entry.Item.Id);
              model.Quantity = entry.Quantity;
              context.Entries(model).EntityState = EntityState.Modified;
  
              context.SaveChanges();
          }
      }
  </code></pre>