예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
 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();
 }
예제 #4
0
 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();
 }