Beispiel #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, EleterosEBContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            //else
            //{
            //    // Error page
            //}
            //app.UseHttpsRedirection();
            app.UseStaticFiles();
            //app.UseNodeModules();
            app.UseRouting();

            app.UseEndpoints(cfg =>
            {
                cfg.MapControllerRoute("Default",
                                       "{controller}/{action}/{id?}",
                                       new { controller = "App", Action = "Index" });
            });

            context.Database.EnsureCreated();
        }
Beispiel #2
0
 public AppointmentTypeRepository(EleterosEBContext context)
     : base(context)
 {
 }
Beispiel #3
0
 public PatientRepository(EleterosEBContext context)
     : base(context)
 {
 }
Beispiel #4
0
 public RoomRepository(EleterosEBContext context)
     : base(context)
 {
 }
Beispiel #5
0
 protected BaseGenericRepository(EleterosEBContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public SurgeryRoomAppointmentRepository(EleterosEBContext context) : base(context)
 {
 }
Beispiel #7
0
 public ProductRepository(EleterosEBContext context) : base(context)
 {
 }
Beispiel #8
0
 public DoctorRepository(EleterosEBContext context)
     : base(context)
 {
 }
Beispiel #9
0
 public CategoryRepository(EleterosEBContext context) : base(context)
 {
 }