// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ZipPayContext zipPayContext) { zipPayContext.Database.Migrate(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } //app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public static void SeedData(ZipPayContext context) { // Apply migrations context.Database.Migrate(); }
public ZipPayAccountController(ZipPayContext context) { _context = context; }
public UserService(ZipPayContext context) { _context = context; }
public AccountRepository(ZipPayContext zipPayContext, IMapper mapper) { _zipPayContext = zipPayContext; _mapper = mapper; }
public UserRepository(ZipPayContext zipPayContext, IMapper mapper) { _zipPayContext = zipPayContext; _mapper = mapper; }
public AccountService(ZipPayContext context) { _context = context; }