I have a method for updating some tables. For update I need get first of TestProcess, but I don\'t like that. How can I update TestProcess without
TestProcess
You can do like that (you probably should have all the test process data):
TestProcess pr = new TestProcess(); pr.Id = id; pr.UpdateID = updateID; context.Attach(pr); context.ObjectStateManager.ChangeObjectState(pr, EntityState.Modified); context.SaveChanges();