I am really confused about why an update is not taking place. This is very simple:
int goodID = 100;
DataContext db = new DataContext();
Schedule schedule = db.Schedules.Single(s => s.ID == goodID);
// this wont persist - WHY NOT?!
schedule.Email = txtEmail.Text;
// this does persist
schedule.NumberCourses = 5;
db.SubmitChanges();
I can't understand why the field, Email, isn't getting the value from the textbox. What can I check?
EDIT
I have set a breakpoint and checked the value after assignment. It assigns the textbox value but still no update.