// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ManagingContext ctx) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseCors("AllowAll"); ctx.Database.EnsureCreated(); app.UseMvc(); }
public ProjectRepositoryEF(ManagingContext context) { _context = context; }
public CustomersController(ManagingContext context) { _context = context; }
public ContactRepositoryEF(ManagingContext context) { _contaxt = context ?? throw new ArgumentNullException(nameof(context)); }