using (NorthwindEntities db = new NorthwindEntities()) {

var customer = (from c in db.Customers
where c.CustomerID == "ALFKI"
select c).AsEnumerable().First();

Console.WriteLine("Zkaznk, ContactName: {0}", customer.ContactName);
Console.WriteLine("Zkaznk, state: {0}", customer.EntityState);

customer.ContactName = "Maria Anders - zmnno";

Console.WriteLine("Zkaznk, ContactName: {0}", customer.ContactName);
Console.WriteLine("Zkaznk, state: {0}", customer.EntityState);

db.SaveChanges();

Console.WriteLine("Zkaznk, state: {0}", customer.EntityState);
}
