コード例 #1
0
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IEfDbService dbService)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints => { endpoints.MapControllers(); });
        }
コード例 #2
0
 public StudentsController(IEfDbService context)
 {
     _context = context;
 }
コード例 #3
0
ファイル: StudentController.cs プロジェクト: s18923/Cw10
 public StudentController(IEfDbService service)
 {
     this.service = service;
 }
コード例 #4
0
 public EnrollmentsController(IEfDbService service)
 {
     _service = service;
 }