Skip to content

Instantly share code, notes, and snippets.

@eyston
Created April 4, 2012 01:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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