コード例 #1
0
 public SurveyRepository(MyDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #2
0
 /// <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);
 }