Ejemplo n.º 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();
            });
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     Context?.Dispose();
     Context = null;
 }
Ejemplo n.º 3
0
 public CoreController(RepayablDbContext context)
 {
     Context = context;
 }
Ejemplo n.º 4
0
 public UserController(RepayablDbContext context) : base(context)
 {
 }
Ejemplo n.º 5
0
 public PropertyController(RepayablDbContext context) : base(context)
 {
 }
Ejemplo n.º 6
0
 public TenantController(RepayablDbContext context) : base(context)
 {
 }