Exemplo n.º 1
0
 public void Update(Person person)
 {
     using (var context = new PersonDataContext())
     {
         context.Persons.Attach(person);
         context.Refresh(RefreshMode.KeepCurrentValues, person);
         context.SubmitChanges();
     }
 }