// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, WealthoxContext context) { if (env.IsDevelopment()) { app.UseBrowserLink(); app.UseDeveloperExceptionPage(); app.UseDatabaseErrorPage(); } else { app.UseExceptionHandler("/Shared/Error"); } app.UseStaticFiles(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Announcement}/{action=Index}"); }); }
public WealthoxUnitOfWork(WealthoxContext context) : base(context) { }
public BaseRepository(WealthoxContext context) { Context = context; Query = context.Set <TEntity>(); }
public BaseUnitOfWork(WealthoxContext context) { this.DbContext = context; }