コード例 #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, MicroServicesCDUContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            app.UseMvc();

            DbInitializer.Initialize(context);
        }
コード例 #2
0
 public ClientesController(MicroServicesCDUContext context)
 {
     _context = context;
 }
コード例 #3
0
 public MovimientosController(MicroServicesCDUContext context)
 {
     _context = context;
 }
コード例 #4
0
 public ProductosController(MicroServicesCDUContext context)
 {
     _context = context;
 }