public void Configure(IApplicationBuilder app, IWebHostEnvironment env, BluDataContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();

            app.UseRouting();

            app.ConfigureExceptionHandler();

            app.UseAuthorization();

            app.UseCors("AllowAll");

            app.UseMvc();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
            context.Database.Migrate();
        }
 public EntityRepository(BluDataContext context) => _context = context;
示例#3
0
 public FornecedorFisicoRepository(BluDataContext context)
     : base(context)
 {
     _fisicoContext = context;
 }
示例#4
0
 public EmpresaRepository(BluDataContext context)
     : base(context)
 {
     _empresaContext = context;
 }
示例#5
0
 public TelefoneRepository(BluDataContext context)
     : base(context)
 {
 }
示例#6
0
 public RepositoryBase(BluDataContext empresaContext)
 {
     _repositoryBase = empresaContext;
 }
        public FornecedorJuridicoRepository(BluDataContext context)
            : base(context)

        {
            _juridicoContext = context;
        }
示例#8
0
 public FornecedorRepository(BluDataContext context)
     : base(context)
 {
 }