// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, AppFullStackDemoContext context) { //here is the culture of your app language, please change it to modify Dates and other settings var supportedCultures = new[] { new CultureInfo("pt-BR") }; app.UseRequestLocalization(new RequestLocalizationOptions { DefaultRequestCulture = new RequestCulture(culture: "pt-BR", uiCulture: "pt-BR"), SupportedCultures = supportedCultures, SupportedUICultures = supportedCultures }); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); context.Database.Migrate(); //note: If API is running inside a DockerContainer, on the first RUN It will run the migration and create the database =) app.UseRouting(); app.UseCors(x => x .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader()); app.UseCors("AppFullStackDemoCors"); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public UserClaimRepository(AppFullStackDemoContext context) { _context = context; }
public DeviceModelRepository(AppFullStackDemoContext context) { _context = context; }
public ManufacturerRepository(AppFullStackDemoContext context) { _context = context; }
public EquipmentRepository(AppFullStackDemoContext context) { _context = context; }
public Uow(AppFullStackDemoContext context) { _context = context; }