public void FetchAppointments(FetchDataEventArgs args)
 {
     using (var dbContext = new SchedulingContext()) {
         args.Result = dbContext.AppointmentEntities.Where(args.GetFetchExpression <AppointmentEntity>()).ToArray();
     }
 }
コード例 #2
0
 public void FetchAppointments(FetchDataEventArgs args)
 {
     args.Result = dbContext.AppointmentEntities.Where(args.GetFetchExpression <AppointmentEntity>()).ToArray();
 }