// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ConfitecContext context) { context.Database.Migrate(); context.Database.EnsureCreated(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "Confitec v1")); } app.UseCors("CorsOptions"); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); ODataConfig.UseODataCustom(endpoints); }); }
public UnitOfWork(ConfitecContext context, INotificador notificador) { _context = context; _notificador = notificador; }
public InjectorRepositorioBase(ConfitecContext context, INotificador notificador) { Context = context; Notificador = notificador; }