Example #1
0
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, WhateverContext whateverContext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            app.UseHttpsRedirection();
            app.UseRouting();
            app.UseAuthorization();
            app.UseEndpoints(endpoints => endpoints.MapControllers());

            whateverContext.Database.Migrate();
        }
 public WhateverRepository(WhateverContext whateverContext)
     : base(whateverContext)
 {
 }