コード例 #1
0
ファイル: Startup.cs プロジェクト: Crissy98/CFPP---Solution
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, CFPPDbContext dbContext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            dbContext.Database.EnsureCreated();

            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
コード例 #2
0
 public CaseRepository(CFPPDbContext context)
     : base(context)
 {
 }
コード例 #3
0
 public CustomerRepository(CFPPDbContext context)
     : base(context)
 {
 }