Skip to content

Instantly share code, notes, and snippets.

@eyston
Created April 4, 2012 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyston/2296834 to your computer and use it in GitHub Desktop.
Save eyston/2296834 to your computer and use it in GitHub Desktop.
var db = new PortalContext();
var profile = new Profile()
{
Id = 20,
FirstName = "Tyler",
LastName = "Durden"
};
db.Entry(profile).State = EntityState.Modified;
db.SaveChanges();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment