public void BuildDoctorChannel(string username, NoticeUri uri) { echelperDBEntities context = new echelperDBEntities(); context.Refresh(System.Data.Objects.RefreshMode.StoreWins, context.Doctor); Doctor doctor = context.Doctor.First(p => p.LiveID == username); doctor.Channel = uri.uri; context.SaveChanges(); }
public void BuildPatientChannel(string username, NoticeUri uri) { echelperDBEntities context = new echelperDBEntities(); context.Refresh(System.Data.Objects.RefreshMode.StoreWins, context.Patient); Patient patient = context.Patient.First(p => p.LiveID == username); patient.Channel = uri.uri; context.SaveChanges(); }
public void BuildPatientChannel(string username,NoticeUri uri) { echelperDBEntities context = new echelperDBEntities(); context.Refresh(System.Data.Objects.RefreshMode.StoreWins, context.Patient); Patient patient = context.Patient.First(p => p.LiveID == username); patient.Channel = uri.uri; context.SaveChanges(); }