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;
public FornecedorFisicoRepository(BluDataContext context) : base(context) { _fisicoContext = context; }
public EmpresaRepository(BluDataContext context) : base(context) { _empresaContext = context; }
public TelefoneRepository(BluDataContext context) : base(context) { }
public RepositoryBase(BluDataContext empresaContext) { _repositoryBase = empresaContext; }
public FornecedorJuridicoRepository(BluDataContext context) : base(context) { _juridicoContext = context; }
public FornecedorRepository(BluDataContext context) : base(context) { }