Beispiel #1
0
 public PessoaRepository(ControleFinanceiroContext context) : base(context)
 {
     if (context == null)
     {
         context = Db;
     }
 }
Beispiel #2
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, ControleFinanceiroContext context)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Pessoas}/{action=Index}/{id?}");
            });

            InicializaDB.Inicialize(context);
        }
 public RepositoryBase(ControleFinanceiroContext context)
 {
     Db = context;
 }
Beispiel #4
0
 public CodeRepository(ControleFinanceiroContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public CategoryRepository(ControleFinanceiroContext controleFinanceiroContext)
 {
     _controleFinanceiroContext = controleFinanceiroContext;
 }
 protected LancamentoReadOnlyRepository(ControleFinanceiroContext context, IHttpContextAccessor httpContextAccessor = null) : base(context, httpContextAccessor)
 {
 }
Beispiel #7
0
 public ExpenseRepository(ControleFinanceiroContext controleFinanceiroContext, ICategoryRepository categoryRepository)
 {
     _controleFinanceiroContext = controleFinanceiroContext;
     _categoryRepository        = categoryRepository;
 }
Beispiel #8
0
 protected Repository(ControleFinanceiroContext db)
 {
     Db        = db;
     DbSet     = db.Set <TEntity>();
     EntitySet = DbSet.AsQueryable <TEntity>();
 }
 public Repository(ControleFinanceiroContext context)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
Beispiel #10
0
 public YieldRepository(ControleFinanceiroContext controleFinanceiroContext)
 {
     _controleFinanceiroContext = controleFinanceiroContext;
 }
 public LancamentoRepositorio()
 {
     _db = new ControleFinanceiroContext();
 }
Beispiel #12
0
 public InputRepository(ControleFinanceiroContext context)
 {
     _context = context;
 }
Beispiel #13
0
 public StatementRepository(ControleFinanceiroContext context)
 {
     _context = context;
 }
Beispiel #14
0
 public CustomerRepository(ControleFinanceiroContext context)
 {
     _context = context;
 }
 public MetaRepositorio()
 {
     _db = new ControleFinanceiroContext();
 }
 public LancamentoRepository(ControleFinanceiroContext context) : base(context)
 {
 }
Beispiel #17
0
 public AnothersExpenseRepository(UserManager <User> userManager, ICategoryRepository categoryRepository, ControleFinanceiroContext controleFinanceiroContext)
 {
     _controleFinanceiroContext = controleFinanceiroContext;
     _categoryRepository        = categoryRepository;
     _userManager = userManager;
 }
Beispiel #18
0
 public UsuarioRepository(ControleFinanceiroContext context) : base(context)
 {
 }
 protected ReadOnlyRepository(ControleFinanceiroContext context, IHttpContextAccessor httpContextAccessor = null) : base(httpContextAccessor)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
 public SubCategoriaRepository(ControleFinanceiroContext context) : base(context)
 {
 }
Beispiel #21
0
 public UnitOfWork(ControleFinanceiroContext context)
 {
     _context = context;
 }