コード例 #1
0
 public IEnumerable <User> GetUserByName(string name)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Users.Where(x => x.FullName == name));
     }
 }
コード例 #2
0
 public Appoiment GetAppoimentById(int id)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Appoiments.Find(id));
     }
 }
コード例 #3
0
 public Agenda GetAgendaById(int id)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Agendas.Find(id));
     }
 }
コード例 #4
0
 public User GetUserById(int id)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Users.Find(id));
     }
 }
コード例 #5
0
 public Question GetQuestionById(int id)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Questions.Find(id));
     }
 }
コード例 #6
0
 public IEnumerable <Patient> GetByBirthDate(DateTime birthDate)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Patients.Where(x => x.BirthDate == birthDate));
     }
 }
コード例 #7
0
 public Patient GetPatientById(int id)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Patients.Find(id));
     }
 }
コード例 #8
0
 public IEnumerable <Patient> GetByName(string name)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Patients.Where(p => p.FullName == name));
     }
 }
コード例 #9
0
 public Statistic GetStatisticById(int id)
 {
     using (var ctx = new RiskzeroContext())
     {
         return(ctx.Statistics.Find(id));
     }
 }