Beispiel #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, 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)
 {
 }
Beispiel #3
0
 public BaseRepository(WealthoxContext context)
 {
     Context = context;
     Query   = context.Set <TEntity>();
 }
Beispiel #4
0
 public BaseUnitOfWork(WealthoxContext context)
 {
     this.DbContext = context;
 }