コード例 #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ControleDeVendasContext context, UserManager <Usuario> userManager, RoleManager <IdentityRole> roleManager)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }

            new IdentitySeeding(context, userManager, roleManager).Initialize();
            app.UseHttpsRedirection();
            app.UseMvc();
        }
コード例 #2
0
 public DepartamentoServico(ControleDeVendasContext context)
 {
     _context = context;
 }
コード例 #3
0
 public SeedingService(ControleDeVendasContext context)
 {
     _context = context;
 }
コード例 #4
0
 public VendasServico(ControleDeVendasContext context)
 {
     _context = context;
 }
コード例 #5
0
 public DepartamentosController(ControleDeVendasContext context)
 {
     _context = context;
 }
コード例 #6
0
 public VendedorServicos(ControleDeVendasContext context)
 {
     _context = context;
 }