Пример #1
0
 public SurveyRepository(MyDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 /// <summary>This constructor initiates the DoctorAppointmentController's appointment service.</summary>
 public DoctorAppointmentController(MyDbContext dbContext, EventDbContext eventDbContext = null)
 {
     regularAppointmentService         = new RegularAppointmentService(dbContext);
     appointmentSchedulingEventService = eventDbContext != null ? new AppointmentSchedulingEventService(new AppointmentSchedulingEventRepository(eventDbContext)) : null;
 }
Пример #3
0
 public SurveyRepository()
 {
     dbContext = new MyDbContext(new DbContextOptionsBuilder <MyDbContext>().UseMySql("Server=localhost;port=3306;Database=MYSQLHealtcareDB;user=root;password=root").UseLazyLoadingProxies().Options);
 }