// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(ContasContext contasContext, IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); //add cors app.UseCors(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); //add swagger app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Bills to receive"); }); }
public LancamentoRepository(ContasContext context) : base(context) { }
public ContasService(ContasContext context) { _context = context; }
public ContaRepository(ContasContext context) : base(context) { }
public UnitOfWork(ContasContext context) { this.context = context; }
protected RepositoryBaseSqlServer(ContasContext db) { Db = db; DbSet = Db.Set <TEntity>(); }
public BaseRepository() { db = new ContasContext(); }
public OrderItemRepository(ContasContext ctx) { _context = ctx; }
public UsuarioRepository(ContasContext context) : base(context) { }
public UserService(ContasContext context) { _context = context; }
public BaseRepository(ContasContext context) { this.context = context; dbSet = context.Set <T>(); }
public OrderRepository(ContasContext ctx, IOrderItemRepository orderItemRepository) { _context = ctx; _orderItemRepository = orderItemRepository; }
public UnitOfWork(ContasContext context) { _context = context; }
public RegrasController(ContasContext context) { _context = context; }
public ContasController(ContasContext context, IContasService contasService) { _context = context; _contasService = contasService; }
public ContaRepository(ContasContext context, IUser user) : base(context) { _user = user; }
public ClientRepository(ContasContext context, IOrderRepository orderRepository) { _context = context; _orderRepository = orderRepository; }
public Repository(ContasContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public ContasService(ContasContext context, ICalculosService calculosService) { _context = context; _calculosService = calculosService; }