public HomeController( BibContext bibContext, UserManager <Benutzer> userManager) { this.bibContext = bibContext; this.userManager = userManager; }
public BuchController( BibContext bibContext, UserManager <Benutzer> userManager, IToastNotification toastNotification) { this.bibContext = bibContext; this.userManager = userManager; this.toastNotification = toastNotification; }
public DbInitializer( BibContext bibContext, UserManager <Benutzer> userManager, RoleManager <IdentityRole> roleManager) { this.bibContext = bibContext; this.userManager = userManager; this.roleManager = roleManager; }
public BenutzerController( UserManager <Benutzer> userManager, SignInManager <Benutzer> signInManager, IToastNotification toastNotification, BibContext bibContext) { this.userManager = userManager; this.signInManager = signInManager; this.toastNotification = toastNotification; this.bibContext = bibContext; }
public void Configure(IApplicationBuilder app, IHostingEnvironment env, BibContext context, IServiceProvider service, DbInitializer dbInitializer) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseBrowserLink(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Benutzer}/{action=Login}/{id?}"); }); context.Database.EnsureCreated(); ((DbInitializer)dbInitializer).Initialize().Wait(); }
public static WarenkorbManager GetWarenkorbManager(Benutzer.Benutzer benutzer, BibContext bibContext) { var warenkorb = new WarenkorbManager(bibContext) { BenutzerName = benutzer.UserName }; return(warenkorb); }
public WarenkorbManager(BibContext bibContext) { this.bibContext = bibContext; }
public UnitOfWork(IDatabaseFactory dbFactory) { this.dbFactory = dbFactory; dataContext = dbFactory.DataContext; }
public static LeihauftragManager GetLeihauftragManager(BibContext bibContext) { var cart = new LeihauftragManager(bibContext); return(cart); }
public LeihauftragManager(BibContext bibContext) { this.bibContext = bibContext; }
public GenderRepository(BibContext context) { this.bibContext = context; }
public DatabaseFactory() { dataContext = new BibContext(); }
public ReviewRepository(BibContext context) { this.bibContext = context; }
public LoanRepository(BibContext context) { this.bibContext = context; }
public AutorRepository(BibContext context) { this.bibContext = context; }
public BookRepository(BibContext context) { this.bibContext = context; }