예제 #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, RepayablDbContext context)
        {
            context.Database.Migrate();
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            app.UseHttpsRedirection();
            app.UseRouting();
            app.UseOpenApi();
            app.UseSwaggerUi3();
            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
예제 #2
0
 public void Dispose()
 {
     Context?.Dispose();
     Context = null;
 }
예제 #3
0
 public CoreController(RepayablDbContext context)
 {
     Context = context;
 }
예제 #4
0
 public UserController(RepayablDbContext context) : base(context)
 {
 }
예제 #5
0
 public PropertyController(RepayablDbContext context) : base(context)
 {
 }
예제 #6
0
 public TenantController(RepayablDbContext context) : base(context)
 {
 }