コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            using (var context = new F20ST4PRJ4TeleMedDatabaseContext())
            {
            }
        }
コード例 #2
0
 public List <PatientMeasurements> GetPatient(string CPR)
 {
     using (var context = new F20ST4PRJ4TeleMedDatabaseContext())
     {
         var patientMeasurements = context.PatientMeasurements.Where(patient => patient.CPRNumber == CPR).ToList();
         return(patientMeasurements);
     }
 }
コード例 #3
0
        public PatientMeasurements GetMeasurementsAndLeads(int ID)
        {
            using (var context = new F20ST4PRJ4TeleMedDatabaseContext())
            {
                var patientWithMeasurements = context.PatientMeasurements.Where(patient => patient.PatientMeasurementId == ID).
                                              Include(measure => measure.ECGMeasurements).
                                              ThenInclude(leads => leads.ECGLeads).FirstOrDefault();

                return(patientWithMeasurements);
            }
        }