Skip to content

Instantly share code, notes, and snippets.

@eyston
Created Apr 4, 2012
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