title: Save entity with entity framework
body: <p>I'm saving entities/records with the EF, but i'm curious if there is another way of doing it.</p>
  
  <p>I receive a class from a MVC controller method, so basicly i have all the info: the class's properties, including the primary key.
  Without EF i would do a Sql update (update table set a=b, c=d where id = 5), but with EF i got no further than this:</p>
  
  <p>Get an object with ID of 5 
  Update the (existing) object with the new object
  Submitchanges.</p>
  
  <p>What bothers me is that i have to get the object from the database first, where i have all the info to do an update statement.</p>
  
  <p>Is there another way of doing this?</p>